Skip to content

Instantly share code, notes, and snippets.

@RyanAtViceSoftware
Last active July 18, 2019 16:16
Show Gist options
  • Save RyanAtViceSoftware/a7a3f9ff36bdb4131890 to your computer and use it in GitHub Desktop.
Save RyanAtViceSoftware/a7a3f9ff36bdb4131890 to your computer and use it in GitHub Desktop.
Hello React JSX - Hello World with ReactJs 1.3 and JSX
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Hello React</title>
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.13.1.js"></script>
</head>
<body>
<script>
var HelloReact = React.createClass({
render: function() {
return React.DOM.h1(null, 'Hello React');
}
});
ReactDOM.render(React.createElement(HelloReact), document.body);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment