Created
April 29, 2015 04:35
-
-
Save momota10s/29975c43556407d7aa3b to your computer and use it in GitHub Desktop.
Hello React
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
<html> | |
<head> | |
<script src="build/react.js"></script> | |
<script src="build/JSXTransformer.js"></script> | |
</head> | |
<body> | |
<div id="container"></div> | |
<script type="text/jsx"> | |
var App = React.createClass({ | |
render: function(){ | |
return ( | |
<div> | |
<h1>Hello, React</h1> | |
</div> | |
); | |
} | |
}); | |
React.render( | |
<App />, | |
document.getElementById('container') | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment