const { getFieldDecorator } = this.props.form getFieldDecorator报错“Cannot read property 'getFieldDecorator' of undefined”

我们会直接

const { getFieldDecorator } = this.props.form

直接使用getFieldDecorator 会报错“Cannot read property 'getFieldDecorator' of undefined”

后来查找看了下原因为“使用getFieldDecorator需要导出form组件

export default Form.create();

于是就ojbk了

{我的是OK了,你的不OK,自己再找找原因吧,拜拜~}

原文地址:https://www.cnblogs.com/chaojimali/p/13632893.html