Last active
July 12, 2017 03:57
-
-
Save okwolf/8644116478fe9fd94a8a306afea82a97 to your computer and use it in GitHub Desktop.
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> | |
<title>unpkg :: basic-react demo</title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="https://unpkg.com/react/dist/react.min.js"></script> | |
<script src="https://unpkg.com/react-dom/dist/react-dom.min.js"></script> | |
<script src="https://unpkg.com/babel-standalone/babel.min.js"></script> | |
<script type="text/babel"> | |
const MyApp = () => ( | |
<h1>Hello from React {React.version}</h1> | |
); | |
ReactDOM.render(<MyApp/>, document.getElementById('app')); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on https://github.com/unpkg/unpkg-demos/blob/master/basic-react/index.html