JSPM

  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q53648F
  • License MIT

An API to manage your form state... Supports form validation. Efficient form development with no substantive downside.

Package Exports

  • react-formstate

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-formstate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-formstate

Coverage Status Build Status

An API to manage your form state...

react-formstate has two competing titles:

  1. DRY form validation in React.
  2. A comprehensive productivity API for React forms.

The thing is, you can't have one without the other.

The advantage of react-formstate is it's not a form controller. It doesn't drive your workflow. The only trade-off you make in using it is learning how to manage your form state through the API. Other than that you retain total control over your form component, even as you maximize productivity. The only thing it's not optimal for is extremely rapid prototyping from scratch.

react-formstate is actively used in real enterprise projects, so if you are evaluating this, you can check that box.

Contributing

For those who see its benefits, thank you for starring the package or for any other form of advocacy. Feedback, code contributions, and ideas for improvement are always welcome.

Setup

$ npm install react-formstate --save

Demo

Validated react-bootstrap components: react-formstate-demo

Walkthrough

Features and examples

Advanced features and examples

Documentation

Peer dependencies

  • React
  • es5 (for example: Object.keys and Array.isArray)
  • That's it!