Created
April 4, 2015 20:08
-
-
Save jergason/3cfb1ca700e52b154983 to your computer and use it in GitHub Desktop.
react stuff
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
var Thing = React.createClass({ | |
doStuff(data) { | |
return (e) => { | |
this.setState({data: data}) | |
} | |
}, | |
render() { | |
return <button onClick={this.doStuff('some data')} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment