reactinputs
v0.1.37
Published
Form Inputs for React
Downloads
10
Readme
ReactInputs
Form Inputs for React (js)
Install:
add something like
"reactinputs": "0.1.22", // was the last version when I wrote this.
to your package.json, and run npm install
#InputCheckbox
var InputText = require('reactinputs/lib/InputText.jsx');
<InputCheckbox name={k.id} onChange={that.checkboxClicked}/>
checkboxClicked: function(value,event,element) {
console.log('checkboxClicked',value,event,element);
console.log(element.state);
console.log(element.props);
},
#InputValidationMixin
If items seem to not render, you might need to override the shouldComponentUpdate. The one on the Mixin only check for props.value. To do that, define a shouldComponentUpdateOverride on your class.