React controlled form validate
Validation of the forms. High order components for react-form-controlled. It is based on JSON Schema.
Simple arrays
If you are using fieldset with simple array do not enter the name attribute.
;;; const schema = type: 'object' required: 'firstName' firstName: username: type: 'string' minLength: 2 ; { superprops context; thisstate = {}; } { ; } { return <Validate schema=schema> <Form value=thisstate onSubmit=thisonSubmit > <input name="firstName" /> <Alert name="firstName" /> <button type="submit">Submit</button> </Form> ; }
Support us
Star this project on GitHub.
Try our other React components
- Translate your great project react-translate-maker
- Google Analytics react-g-analytics
- Google AdSense via Google Publisher Tag react-google-publisher-tag
License
The MIT License (MIT)
Copyright (c) 2016 Zlatko Fedor