Skip to content

Instantly share code, notes, and snippets.

@jergason
Created April 4, 2015 20:08
Show Gist options
  • Save jergason/3cfb1ca700e52b154983 to your computer and use it in GitHub Desktop.
Save jergason/3cfb1ca700e52b154983 to your computer and use it in GitHub Desktop.
react stuff
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