From the course: Build Modern Web Apps with React, Hooks, State Management, and APIs Using Vite or Next.js

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Yup library demo

Yup library demo

Hello and welcome back. In this video, we are going to see how we can install yup and zord libraries and we can use them. Let's start off with the yup library first. Each of these libraries have to come along with react-hook form. So react-hook form is a prerequisite and a mandatory library to be installed. You can install the YUP library using npm install command. As I said, react-hook form is necessary. So if you haven't installed it, you have to write down the react-hook form as well. Otherwise, you can continue forward with the YUP and its hook form resolvers. Let's see that and install this. I'm going to go in the forms application. In the package.json, you can see that we already have installed react-hookform. If you have not installed this library, then please do so. I'm going to install yup and hookform resolvers. Let's verify the command Yes, we can proceed forward. Let's install that Meanwhile, it's installing, we can move to the next step. The next step involves, once you…

Contents