0

我想将 true 或 false 的启用或禁用值传递给 Formik 的组件,但是当我这样给出时

<Formik 
enableddisabled={true}
component={ContactForm} />;

它没有收到ContactForm component,它显示未定义

我如何传递enabledisabledContactFormComponent 并在联系表单组件中获取它,以便我可以在那里使用它进行进一步检查?

4

0 回答 0