Skip to content

Instantly share code, notes, and snippets.

@cleydyr
Created May 28, 2019 21:53
Show Gist options
  • Save cleydyr/8de1d3caa2ef85175b4d3fc8266f812b to your computer and use it in GitHub Desktop.
Save cleydyr/8de1d3caa2ef85175b4d3fc8266f812b to your computer and use it in GitHub Desktop.
Hello React
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Hello React!</title>
<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/[email protected]/babel.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
class App extends React.Component {
render() {
return <h1>Hello world!</h1>;
}
}
ReactDOM.render(<App />, document.getElementById('root'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment