Skip to content

Instantly share code, notes, and snippets.

@joevo2
Last active November 22, 2017 10:59
Show Gist options
  • Save joevo2/21a7670c89f196955d920d5b8505b6eb to your computer and use it in GitHub Desktop.
Save joevo2/21a7670c89f196955d920d5b8505b6eb to your computer and use it in GitHub Desktop.
HTML only React.js
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/react@16.1.0/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16.1.0/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script type="text/babel">
class App extends React.Component {
render() {
return (
<div>
<p>Hi</p>
</div>
)
}
}
ReactDOM.render(
<App />,
document.getElementById('app')
)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment