我试图像往常一样在提交时使用一个额外的函数,但它显示它不是一个函数。this.confirmSubmission(); // here it says Uncaught error: confirmSubmission is not a function
} 我使用的函数return (<MyCOmponent model={model} onComplete={this.onSubmission}/>); 如果没有confirmSubmissi
我的代码中出现以下错误:const store = createStore(rootReducer, composeEnhancers我不明白,因为我刚刚复制了我的ReactJS讲师的代码,他没有得到这个错误,但我得到了。我的全部代码如下所示:import ReactDOM from 'react-dom';
impo
</div> );当然,我的普通函数不能有ReactJS方法的componentDidMount()。因为它不是扩展React.PureComponent的类。我在一个ReactJS网络应用程序中使用这个函数。export default function Daw() {
componentDidMount() { // ** Cannot use this