DEV Community

loading...
Cover image for Formik vs React-hook-form Cases Part II

Formik vs React-hook-form Cases Part II

doaashafik profile image Doaa Shafik ・1 min read

Nested Arrays

react-hook-form handle it with useFieldArray.

formik handle array fields with FieldArray

Nested Array Validation

react-hook-form by default validate input inSubmit only.
To enable it on other events, you need custom changes.
see trigger.

formik by default validate input in all events.

Integrate with Material UI

react-hook-form we can integrate external controlled components like react-select with Controller

formik you can render external controlled component by itself. Look at example

Discussion (0)

pic
Editor guide