Skip to content

Instantly share code, notes, and snippets.

@monsterooo
Last active June 29, 2022 08:00
Show Gist options
  • Save monsterooo/5fb9a7bbe3623f3a0a62266b7ab21c05 to your computer and use it in GitHub Desktop.
Save monsterooo/5fb9a7bbe3623f3a0a62266b7ab21c05 to your computer and use it in GitHub Desktop.
hello-react
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@17.0.2/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@17.0.2/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone@7.13.12/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/jsx">
ReactDOM.render(
<h1>Hello, React!</h1>,
document.getElementById('root')
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment