Skip to content

Following a tutorial about how to do form validation in React

Notifications You must be signed in to change notification settings

lizagne/react-form-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactJS Form Validation

Following a tutorial about how to do form validation in React.

Need to practice how to set up form validation ready for my Football team project.

Refactor change on Development branch:

I wanted to emulate what I would ideally like on the football app, and that is a name validation field, which only accepts numbers, letters, hyphens, spaces and apostrophes. Found some code on Stack overflow which does this:

nameValid = value.match(/^[a-zA-Z][a-zA-Z0-9 \-']+$/);

Will now try and refactor my form on the football app to include this.

Demo of Form Validation short tutorial

Demo

About

Following a tutorial about how to do form validation in React

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published