React Controlled Form Validation
In this tutorial, you will be introduced to simple form validation for controlled forms in React. At the end of this tutorial, you will be able to:
- Configure and perform simple form validation for your controlled forms
Simple Form Validation
- Open ContactComponent.js and update it as follows to introduce the support to track form errors and perform validation:
- You can now test your form by typing in invalid input and check how the form validation works.
(source: Front-End Web Development with React on Coursera)