formjsx
v0.0.1
Published
Tiny React/ES6 form helper
Downloads
2
Readme
FormJSX
Tiny React/ES6 form helper
Why?
I hate doing repetitive things, so I wrote a generic form class.
var form = new Form.Create;
form.on('submit', function(values) {
console.log(values);
});
ReactDOM.render(form.render({
name1: {type: 'text'},
name2: {type: 'text'},
name3: {
type: 'form',
elements: {
yet_another: { type: 'text'},
}
},
}, document.getElementById("foobar"));