Skip to content

Instantly share code, notes, and snippets.

@Nyalab
Created May 11, 2015 14:36
Show Gist options
  • Select an option

  • Save Nyalab/2f06894ab3f80fc25270 to your computer and use it in GitHub Desktop.

Select an option

Save Nyalab/2f06894ab3f80fc25270 to your computer and use it in GitHub Desktop.
class TresElegant extends Component {
@autobind
handleInput() { }
render() {
return <div onInput={this.handleInput}/>
}
}
class MoinsElegant extends Component {
handleInput() { }
render() {
return <div onInput={(e) => this.handleInput(e)}/>
}
}
class TresSale extends Component {
handleInput() { }
render() {
return <div onInput={this.handleInput.bind(this)}/>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment