0
对于字段的Redux表单文档(http://redux-form.com/6.5.0/docs/api/Field.md/),它表示应该有一个onChange属性(props.input.onChange),但我的组件不提供任何此类财产。字段组件不提供'input.onChange'属性
const customComponent = props => {
console.log(`input: ${JSON.stringify(props.input)}`);
return (
<Jsx ... />
);
};
//Using it:
<Field name="link_id" component={customComponent} />
这将打印input: {"name":"link_id","value":""}
是有什么我做错了什么?