DEV Community

Discussion on: React Hook Form vs. Formik: A technical and performance comparison

 
bluebill1049 profile image
Bill

Thanks for the feedback! I think I do lack a good example of doing Field Array, which I should :). The lib itself doesn't expose any of those utility functions which you have mentioned and it's my purpose, I would prefer users to compose and work off their own logic and keep the API primitive. To work with react-hook-form with Field array, you need to maintain your own state to generate the fields and use the 'name' attribute as your name of the data source. I will be working on a good example and upload the website soon.