Last active
March 6, 2018 12:57
-
-
Save singingwolfboy/645d18991cf788d8c024093abf8effe5 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
<input onClick={function() {}} /> | |
class Component extends React.Component { | |
propTypes = { | |
onClick: PropTypes.func, | |
} | |
handleClick = e => { | |
// do stuff | |
this.props.onClick() | |
} | |
openModal = e => { | |
this.setState({ open: true }} | |
} | |
render() { | |
<input onClick={this.handleClick} /> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment