Created
May 5, 2016 05:02
-
-
Save phraniiac/20b5cf87ae48b5cee7508508ebe5961e 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
var MyComponent = React.createClass({ | |
/* all the functionalities to be defined. */ | |
someProperty = false; | |
}); | |
// Treat it like a standard html tag now. | |
var myElement = <MyComponent someProperty={true} /> | |
ReactDOM.render(myElement, document.getElementById('example')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment