Skip to content

Instantly share code, notes, and snippets.

@jergason
Created April 4, 2015 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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