Last active
July 18, 2019 16:16
-
-
Save RyanAtViceSoftware/a7a3f9ff36bdb4131890 to your computer and use it in GitHub Desktop.
Hello React JSX - Hello World with ReactJs 1.3 and JSX
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
<!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