What does HackerNews think of react-hook-form?
📋 React Hooks for form state management and validation (Web + React Native)
Language:
TypeScript
There are probably 15k npm libraries that solve that very thing. I think this is part of what people struggle with and complain about WRT web dev. There are so many choices for libs and frameworks it can be hard to know which one to pick and which dragons you'll find along each path.
FWIW if you're using hooks and React, React Hook Form is good: https://github.com/react-hook-form/react-hook-form
Either react-hook-form[1] or formik[2]
[1] https://github.com/react-hook-form/react-hook-form [2] https://github.com/jaredpalmer/formik
I felt exactly the same for many years, but when hooks where introduced, I discovered react-hook-form[1].
It just blew my mind how you can write complex forms with validations in just a few lines of code.
Give it a try.