Skip to content

Instantly share code, notes, and snippets.

@tmatz
Last active March 16, 2020 03:31
Show Gist options
  • Save tmatz/6e3a3cd730e132a28bc9263bbf45788c to your computer and use it in GitHub Desktop.
Save tmatz/6e3a3cd730e132a28bc9263bbf45788c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>single html react app</title>
<script crossorigin src='https://unpkg.com/react/umd/react.development.js'></script>
<script crossorigin src='https://unpkg.com/react-dom/umd/react-dom.development.js'></script>
<script crossorigin src='https://unpkg.com/@babel/standalone/babel.min.js'></script>
</head>
<body>
<div id='root'></div>
<script type='text/babel'>
ReactDOM.render(<span>Hello React!</span>, document.getElementById('root'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment