Created
January 26, 2016 07:52
-
-
Save StevenJL/dc9c875399f603248efe 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
| var SomeMixin = { | |
| doSomething() { | |
| } | |
| } | |
| Contacts = React.createClass({ | |
| mixins: [SomeMixin], | |
| handleClick: function { | |
| this.doSomething(); // use mixin | |
| }, | |
| render: function() { | |
| return ( | |
| <div onClick={this.handleClick}></div> | |
| ); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment