Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class MyComponent extends React.Component {
constructor() {
this.handleClick = this.handleClick.bind(this);
handleClick(e) {
console.log('Parameter', this.props.param);
console.log('Event', e);
render() {
<button onClick={this.handleClick}></button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.