[Ivan Diaz] - Add props to Input component

This commit is contained in:
Ivan Diaz 2015-09-17 22:18:30 -03:00
parent 39a9b051e0
commit 7e99487f28
1 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,18 @@ import React from 'react';
var Input = React.createClass({
propTypes: {
value: React.PropTypes.string,
validation: React.PropTypes.func,
onChange: React.PropTypes.func
},
getDefaultProps() {
return {
value: ''
};
},
render() {
return (
<input {...this.getProps()} />