Created
May 12, 2016 10:37
-
-
Save RafalFilipek/64e6a79b4358c996c86429ae89a16b13 to your computer and use it in GitHub Desktop.
bind
This file contains 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
class Foo extends React.Component { | |
state = {} | |
bar = (i) => { | |
this.setState({ a: i }) | |
} | |
render() { | |
return <Biz onClick={this.bar} /> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment