Skip to content

Instantly share code, notes, and snippets.

@sadamiak
Last active Nov 24, 2020
Embed
What would you like to do?
Standard HTML file with React, ReactDOM and Babel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<!-- React -->
<script src="https://unpkg.com/react@17/umd/react.development.js" crossorigin></script>
<!-- ReactDOM -->
<script src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" crossorigin></script>
<!-- Babel (only needed for JSX support) -->
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<body>
<div id="react"></div>
<script src="component.js" type="text/babel"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment