Skip to content

Instantly share code, notes, and snippets.

@NoamELB
Last active November 18, 2017 18:26
Show Gist options
  • Save NoamELB/f2ee523cd37815fa84bd9ff60591a909 to your computer and use it in GitHub Desktop.
Save NoamELB/f2ee523cd37815fa84bd9ff60591a909 to your computer and use it in GitHub Desktop.
unleashed component
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