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. why react-formstate?
- seamlessly supports dynamic forms, asynchronous validation, and nested, reusable form components.
- 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.
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.
if you have any feedback 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
- nonstandard input example: react-datepicker
- file input example
- show validation message on blur
- onUpdate callback
documentation
peer dependencies
- react (!)
- assumes es5 (for example: Object.keys and Array.isArray)