Skip to content

ir3ne/react-form-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React form validation

Live demo here.

Rules

Name

A string that consists of between of 3 and 30 (inclusive) upper and lower case English alphabetic letters only.

E-mail

A standard email address. For example, user@domaini.extension is valid but user@domaini is not.

Phone

A 10-digit number that does not begin with 0 or 1.

Blog URL

A standard URL that covers such as http://domaini.extension, http://www.domain.extension, www.domain.extension, and domaini.extension.


Installation

yarn install

Getting started

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Deployment

yarn build