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
a flexible, well-designed approach to react forms
there are a slew of react form packages out there. if you've managed to find this one, why should you use it?
- clean design allows for stateless input components - no mixin or decoration required.
- simple architecture encapsulates UI validation logic in your form component where it typically belongs.
- feature complete and fully tested - not a half-baked, half-finished library that will leave you hanging.
- seamlessly supports asynchronous validation and nested, reusable form components.
react-formstate allows you to compose elegant forms quickly and easily, without getting in your way. it saves you hassle and time while still providing effective extension points. in my opinion, no other package does this as successfully as react-formstate.
if you have feedback that would help to improve the library i am happy to hear it. thanks.
setup
$ npm install react-formstate --savefeatures and examples
- basic example
- model injection
- validation
- nested form components
- asynchronous validation
- arrays, adding and removing inputs in response to state changes
- other input types: checkbox, checkbox group, radio group, select, and multi-select
- show validation message on blur
- onUpdate callback
documentation
peer dependencies
- react (!)
- assumes es5 (for example: Object.keys and Array.isArray)