DEV Community

dastasoft
dastasoft

Posted on • Updated on

How is your approach to manage large form validations in React?

When you manage different pages with large forms what is your approach with form validation?

  • Browser API
  • Third-Party library
  • Custom Hooks / Custom JS Solution

EDIT: Currently I'm using React Hook Form

Discussion (2)

Collapse
epranka profile image
Edvinas Pranka • Edited

Yup.js is a very powerful library to validate the nested and deep objects. I created my own library which helps me to generate the form and the yup.js schema itself.

github.com/jquense/yup

Collapse
devdufutur profile image
Rudy Nappée

React hook form or formik+yup are simple ans effective ways to handle forms in react