Skip to content

alvernesto/react-validator-form-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

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

Run

In the project directory, you can run:

npm start

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.

npm run build

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.

About

Validator form code with React js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published