Formik in React JS for Form Validation , Form Submission ....
Forms are really important for us as web developers, because on every application you do in real life, you are probably going to need to do forms.
Building forms in React can be tiring and can get messy. If you have a small form with few data inputs you can build it without using a form library. The same can't be said when building forms with larger number of data inputs and validation rules.
Install FORMIK
Form Submission and Form Validation using useFormik({}) Hook..
Here you will find code for Form Validation ...
* Formik Form Validation :: Documentation
* Formik Tuts
FormikSubmission Event ::
onSubmit={formik.handleSubmit}>
Formik Value ::
value={formik.values.name}
Formik onChange Event ::
onChange={formik.handleChange}>
Formik Error Handeling ::
{ formik.errors.name? <div className="errors">{formik.errors.name}</div>:null}