react-hoc-validation

This modules makes use of higher order components to decorate straight forward form markup with validation rules.

Usage no npm install needed!

<script type="module">
  import reactHocValidation from 'https://cdn.skypack.dev/react-hoc-validation';
</script>

README

React Higher Order Component Form Validation

This modules makes use of higher order components to decorate straight forward form markup with validation rules.

Documentation

Read up!

Goals

  • Declarative implementation
  • Straight forward integration
  • No custom form element components in the library
  • Compatible with your own custom form element components
  • No class inheritance
  • Async-compatible validation functions enabling remote tests

Examples

To run the examples in your development environment:

  1. Clone this repo
  2. Run npm install
  3. Start the development server with npm start
  4. Point your browser to http://localhost:8080

Work in Progress

It should go without saying on a project this new that it is a work in progress. There's lots to do!