Skip to content

Instantly share code, notes, and snippets.

@asfktz
Last active August 9, 2016 12:37
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 asfktz/a5e5ab99bca04e7120eb15f32624deaa to your computer and use it in GitHub Desktop.
Save asfktz/a5e5ab99bca04e7120eb15f32624deaa to your computer and use it in GitHub Desktop.
class Button extends React.Component {
handleClick () {
console.log(this)
}
render () {
return (
<div onClick={(e) => this.handleClick(e)}>
Click
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment