Skip to content

Instantly share code, notes, and snippets.

@pastelsky
Last active March 30, 2017 15:20
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 pastelsky/412e92666e713a0f3524565d84aff6ad to your computer and use it in GitHub Desktop.
Save pastelsky/412e92666e713a0f3524565d84aff6ad to your computer and use it in GitHub Desktop.
Consistent Naming
class ProductList extends Component {
handleAccordionClick() {
//...
}
handleButtonClick(){
//...
}
render() {
return (
<Accordion onClick={ this.handleAccordionClick }>
<button onClick={ this.handleButtonClick}> Click Me </button>
</Accordion>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment