Skip to content

Instantly share code, notes, and snippets.

@okwolf
Last active July 12, 2017 03:57
Show Gist options
  • Save okwolf/8644116478fe9fd94a8a306afea82a97 to your computer and use it in GitHub Desktop.
Save okwolf/8644116478fe9fd94a8a306afea82a97 to your computer and use it in GitHub Desktop.
<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>
@okwolf
Copy link
Author

okwolf commented Jul 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment