-
-
Save asfktz/a5e5ab99bca04e7120eb15f32624deaa to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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