Created
November 19, 2013 20:21
-
-
Save erikakers/7551880 to your computer and use it in GitHub Desktop.
Javascript: React JSX module template.
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
| /** | |
| * @jsx React.DOM | |
| */ | |
| var App.Views.MyComponent = React.createClass({ | |
| render: function() { | |
| return ( | |
| <p>Awesome Code</p> | |
| ); | |
| } | |
| }); | |
| React.renderComponent( <MyComponent />, document.getElementById('container')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment