Guest User

Untitled

a guest
Nov 20th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. export default class UnleashedOne extends React.Component {
  2. constructor(props) {
  3. super(props);
  4. this.onChange = this.onChange.bind(this);
  5. }
  6. onChange(e) {
  7. this.props.onChange(e.target.value);
  8. }
  9. render () {
  10. return (
  11. <input onChange={this.onChange}/>
  12. );
  13. }
  14. }
Add Comment
Please, Sign In to add comment