Skip to content

Instantly share code, notes, and snippets.

@gtsafas
Created February 26, 2017 00:01
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 gtsafas/e39b20f5f38722cb66560023b8376a6c to your computer and use it in GitHub Desktop.
Save gtsafas/e39b20f5f38722cb66560023b8376a6c to your computer and use it in GitHub Desktop.
class Item extends React.Component {
onClick() {
console.log(1);
}
render() {
return (<div onClick={this.onClick.bind(this)}></div>)
}
}
class Item2 extends Item{
onClick() {
console.log(2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment