Created
June 1, 2015 13:58
-
-
Save bobbyjam99-zz/929e93fdfcb97b98163e 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="build/react.js"></script> | |
<script src="build/JSXTransformer.js"></script> | |
</head> | |
<body> | |
<div id="app-container"></div> | |
<script type="text/jsx"> | |
var Hello = React.createClass({ | |
render: function() { | |
return ( | |
<div> | |
<h1>Hello, React</h1> | |
</div> | |
); | |
} | |
}); | |
React.render( | |
<Hello />, | |
document.getElementById('app-container') | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment