Here, we have validation of form fields with React js. Try to fill correctly and incorrectly every field of form and check out the response of this. The validation are:
- All fields must be fill it
- Email field must be fill with a valid email (some@somewhere.com). In another case, the label html element of this field (text with the legend Email) it change between red and green (incorrect | correct)
- Password field need to be fill with 5 characters
- Repeat password field need to be equal to password
- Press the "send" button. If all field was fill correctly, you can ficticiously loggin xd.
Here, we have too a little examples of:
- Dynamically update custom properties (Lavel)
- email, equality passwords compare, no empty field validations with arrow´s functions and blabla ...
- High modularization app; a Home component deploys Form, with input, label and alert components
- React functional components, props and wherever
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.