Last active
November 18, 2017 18:26
-
-
Save NoamELB/f2ee523cd37815fa84bd9ff60591a909 to your computer and use it in GitHub Desktop.
unleashed component
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class UnleashedOne extends React.Component { | |
constructor(props) { | |
super(props); | |
this.onChange = this.onChange.bind(this); | |
} | |
onChange(e) { | |
this.props.onChange(e.target.value); | |
} | |
render () { | |
return ( | |
<input onChange={this.onChange}/> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment