Skip to content

Instantly share code, notes, and snippets.

@momota10s
Created April 29, 2015 04:35
Show Gist options
  • Save momota10s/29975c43556407d7aa3b to your computer and use it in GitHub Desktop.
Save momota10s/29975c43556407d7aa3b to your computer and use it in GitHub Desktop.
Hello React
<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