Skip to content

Instantly share code, notes, and snippets.

@aofleejay
Created May 17, 2018 09:36
Show Gist options
  • Save aofleejay/d9317e650a8adfa3fc04288109d96af2 to your computer and use it in GitHub Desktop.
Save aofleejay/d9317e650a8adfa3fc04288109d96af2 to your computer and use it in GitHub Desktop.
Simple React boilerplate with Babel
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div id="root"></div>
</body>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script type="text/babel">
const element = <h1>Hello World!</h1>
ReactDOM.render(element, document.getElementById('root'))
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment