Skip to content

Instantly share code, notes, and snippets.

@cindywu
Created January 6, 2023 19:11
Show Gist options
  • Save cindywu/1d3c6399188f27e48cedac52a3cb501d to your computer and use it in GitHub Desktop.
Save cindywu/1d3c6399188f27e48cedac52a3cb501d to your computer and use it in GitHub Desktop.
react react-dom babel render a thing
<!-- index.html -->
<html>
<body>
<div>
<div id="app">
</div>
<script src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<script type="text/jsx">
const app = document.getElementById('app');
ReactDOM.render(<h1>Develop. Preview. Ship. 🚀</h1>, app);
</script>
</div>
</body>
</html>
@cindywu
Copy link
Author

cindywu commented Jan 6, 2023

CleanShot 2023-01-06 at 09 11 45@2x

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