我已经使用 Ant 设计的 Form.create() 创建了一个表单,我想在另一个组件中访问它的字段值。使用 redux,我可以使用:
function mapStateToProps(state) { return { formStates: getFormValues('form')(state), }; }
有没有办法为 Ant 设计的表单做到这一点?
reactjs redux redux-form antd
antd ×1
reactjs ×1
redux ×1
redux-form ×1