loading...

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

dastasoft profile image dastasoft Updated on ・1 min read

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

markdown guide
 

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

 

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