Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form validation

Simple React app with form containing fields:

  • username

  • password

  • email

  • From contains checkbox toggle that controls visibility of email field.

  • Form uses Formik library to enhance post submit validation.

  • Submit message is shown, dependent on the results of validation.

  • On successfull form submission, a fake API POST request is being sent - this mimics forms ability to throttle invalid API requests.

  • Form contains basic unit tests written with react testing library / jest.

Installation

  • 'npm install'

Starting app

  • 'npm start'

Run tests

  • 'npm test'

Preview

image

image

Demo

https://reg-form-dev.netlify.app/

To-do's

  • Use validation schema with Yup
  • Evaluate & fix warnings on unit tests (related to manipulating form state)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages