Validating with Yup
Yup is your life saver
Yup are powerful tools in the React ecosystem for form validation. Let's explore it together
Yup
Yup is a JavaScript schema validation library often used in conjunction with form libraries like RHF. It provides a simple and expressive way to define and validate schemas for objects.
Installation :
Go to your project and run this command.
npm install yup