Created
June 12, 2020 00:07
-
-
Save singh100ful/9eb541a9811acdcf0278efd349de7412 to your computer and use it in GitHub Desktop.
FieldArray Children Type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Formik initialValues={{ diet: [] }}> | |
{(formProps) => ( | |
<Form> | |
<FieldArray name="diet"> | |
{(arrayHelpers) => { | |
return ( | |
<Form> | |
{/** whatever you need to do */} | |
</Form> | |
); | |
)} | |
</FieldArray | |
</Form> | |
)} | |
</Formik> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment