DEV Community

Discussion on: Why can't Form Validation be nice?

Collapse
 
ronnewcomb profile image
Ron Newcomb • Edited

It's not bad at all, but I'm starting to see a lot of components - not necessarily forms - start with a paragraph of Hooks for every little thing. Seems no one wants to use a single setState anymore, but now wants to use a separate hook for every string or number?

RHF starts with 3 hooks...

Also I really hate repeating
onBlur={handleBlur}
onChange={handleChange}
on every single element. RHF and Formik both require this boilerplate.