我一直在尝试使用资产商店中的模型和我自己的脚本创建预制件,以在图像之上进行渲染,但是 import { appActions } from '../_actions';
class LoginPage extends React.Component {
constructor(props) {
super(props);
// reset login status
this.props.dispatch(userActions.logout());
this.state = {
email: '',
password: '',
isDisabled: false,
submitted: false
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.showSwal = this.showSwal.bind(this);
}
componentDidMount() {
// TODO call the action to add dynamic manifest file to index.html
this.props.dispatch(aapActions.getAppDetails());
}
render() {
return (
................
);
}
}
中存在的预制字段不接受我创建的预制件。我不确定我的预制件到底出了什么问题,真的会感激在正确方向上的任何帮助。