resetForm 不是函数,为什么会出现此错误?
resetForm is not a function, why do i get this error?
我的表单页面中有一个取消按钮,我添加了
onClick={() => this.props.resetForm()}
用它来清除表格,但我得到 TypeError: resetForm is not a function
我的表单页面中有一个取消按钮,我添加了
onClick={() => this.props.resetForm()}
用它来清除表格,但我得到 TypeError: resetForm is not a function