Skip to content

Instantly share code, notes, and snippets.

@aofleejay
Last active May 17, 2018 18:07
Show Gist options
  • Save aofleejay/e063ca21f59d6b5c2cba6d695cf33d53 to your computer and use it in GitHub Desktop.
Save aofleejay/e063ca21f59d6b5c2cba6d695cf33d53 to your computer and use it in GitHub Desktop.
Simple React boilerplate
<!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 type="text/javascript">
const element = React.createElement('h1', { className: 'greeting' }, 'Hello, world!')
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