r/reactjs • • Mar 02 '20

Resource React Hook Form: Performant, flexible and extensible forms with easy-to-use validation

https://react-hook-form.com/
203 Upvotes

39 comments sorted by

View all comments

Show parent comments

9

u/simkessy Mar 02 '20 edited Mar 03 '20

Yea I'm removing Formik soon, every keystroke re-redeners the form and it slows down sooo much

2

u/moogeek Mar 02 '20

every keystroke redeners the form and it slows down sooo much

For simple and small form yes, but for form that is large enough that you need to have child component it is not. You have to use a context which means that rerender will still happen on every state changes. See: https://react-hook-form.com/advanced-usage#FormContextPerformance

Although they propose a solution, you can do just the same thing with Formik as well.