React-Form-HOC
Higher order component for react forms (inspired by redux-form)
Installation
$ npm install --save react-form-hoc
Usage
import formHOC from 'react-form-hoc' const MyForm = fields <form> <input /> <input /> </form> const Formed = MyForm <Formed = />
Each field in the fields prop contains the value
a onBlur
, onChange
, error
(if preset) and the initalValue
.
License
MIT © Christoph Hermann