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.

React Hook Form

React Hook Form

Hello and welcome back. We are going to start our lesson number 3 and in this lesson we will understand handling of the form inputs. So far we have discussed about how we can declare a state and what a controlled and uncontrolled component is. Now is the time to actually create forms and see the libraries installed and involved when we are dealing with forms because inside components in the web applications most of the time we are dealing with forms and taking input from the user. For forms we have a very popular library that is react-hoc-form. This is most used and widely used library when dealing with forms and react applications. The key benefits that this library offers that it has optimized performance, it minimize the re-renders as much as possible, because using this library, we are going to control our forms. It's simple and a declarative API, which makes it easier to use. It also creates a smaller bundle size when we are creating the finalized build for our react application.…

Contents