Skip to content

Instantly share code, notes, and snippets.

@emilyruby
Created June 1, 2019 16:04
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 emilyruby/5987e9aa3a0f451335ccbc189c700c07 to your computer and use it in GitHub Desktop.
Save emilyruby/5987e9aa3a0f451335ccbc189c700c07 to your computer and use it in GitHub Desktop.
class ExampleButton extends React.Component {
handleClick = () => {
console.log("I've been clicked!")
};
render() {
return (
<button onClick={this.handleClick}>
Click me!
</button>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment