Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Example hook for promise-based validation, specifically on a form

License

Notifications You must be signed in to change notification settings

eiof/diy-react-validation-hook

Repository files navigation

DIY React Validation Hook

Example of a simple way to implement validation with promise-based form validation.

Running the example

npm install
npm start

Notes

This example uses two libraries that can probably be excluded

  • bluebird
    • Use Promise.reflect as an alternative to Promise.settleAll
    • Can loop through promise inspections
  • immer
    • Immutable validators and error state

About

Example hook for promise-based validation, specifically on a form

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published