DEV Community

Discussion on: The last react form library you will ever need

Collapse
 
romeerez profile image
Roman K

Would be nice to mention that react-hook-form supports integration with validation libraries, so we can define Zod schema (or to use other lib), type will be inferred, it can be reused between different forms, or even with server side if you have node.js backend, as the result it's even less code than with native approach and includes more validations, and no need to worry if some kind of validation doesn't work in Safari.

Collapse
 
ivanms1 profile image
Ivan

I'll try to add a section when I get the time.
I've only done it with yup, but I've heard some good things about zod, need to try it.