Form validation on the frontend is a painful task. Thanks to Formik, It will not just create a quick form but also has builtin functionality for onChange, onBlur etc. events. The Formik is designed to handle complex validation with ease. So, let’s just start building a simple SignUp form with React, Formik and Yup.
React hooks are introduced in React 16.8. If you are familiar with the class components then there is no difference to change the parent component state from child component.
Protected / Private Routing is helpful in case of backend development with ReactJs. Or we can say only authenticated users can only access the particular route. We can make a protected/private route with React Router Dom package. I am using React Router 5.x.
Facebook created create-react-app utility to set up React Project with minimum effort and configuration. There is also a way to create your own setup for React project from scratch. Let’s start without wasting too much time.
Before starting, make sure you have installed npm on your computer. To check that run the following command
npm -v this command outputs you the version of npm. NPM comes with NodeJs and you can install it from the official Node.js site.