Skip to content

Instantly share code, notes, and snippets.

@johnny12150
Created July 9, 2021 19:43
Show Gist options
  • Save johnny12150/93bf395bed2ba70d7937e1ee370360fd to your computer and use it in GitHub Desktop.
Save johnny12150/93bf395bed2ba70d7937e1ee370360fd to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js"></script>
<!-- in order to use JSX -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
</body>
<script type="text/babel">
class App extends React.Component {
render() {
return <h1>Hello, I'm here</h1>
}
}
ReactDOM.render(<App />, document.getElementById('root'))
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment