DEV Community

Cover image for Formik vs React-hook-form Cases Part II
Doaa Shafik
Doaa Shafik

Posted on

Formik vs React-hook-form Cases Part II

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

Top comments (0)