我想将 true 或 false 的启用或禁用值传递给 Formik 的组件,但是当我这样给出时
<Formik
enableddisabled={true}
component={ContactForm} />;
它没有收到ContactForm component
,它显示未定义
我如何传递enabledisabled
到ContactForm
Component 并在联系表单组件中获取它,以便我可以在那里使用它进行进一步检查?
我想将 true 或 false 的启用或禁用值传递给 Formik 的组件,但是当我这样给出时
<Formik
enableddisabled={true}
component={ContactForm} />;
它没有收到ContactForm component
,它显示未定义
我如何传递enabledisabled
到ContactForm
Component 并在联系表单组件中获取它,以便我可以在那里使用它进行进一步检查?