Created
November 30, 2017 19:00
-
-
Save BerkeleyTrue/aedbc9812b8c154585eed3cb574b9edb to your computer and use it in GitHub Desktop.
This file contains 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 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