Skip to content

Instantly share code, notes, and snippets.

@keldin-coding
Created May 30, 2021 23:36
Show Gist options
  • Save keldin-coding/11972c51fe75066bbb74ea921acbd9bd to your computer and use it in GitHub Desktop.
Save keldin-coding/11972c51fe75066bbb74ea921acbd9bd to your computer and use it in GitHub Desktop.
class MyComponent extends React.Component {
this.handleClick = (event) => {
console.log(event); // do something
}
function render() {
<input onClick={this.handleClick} />
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment