Created
February 26, 2017 00:01
-
-
Save gtsafas/e39b20f5f38722cb66560023b8376a6c 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 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