Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
Last active June 27, 2018 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshbuchea/d8247f70fdbdc03b6af803b00b11668e to your computer and use it in GitHub Desktop.
Save joshbuchea/d8247f70fdbdc03b6af803b00b11668e to your computer and use it in GitHub Desktop.
React Example: Bare Minimum
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>React Example: Bare Minimum</title>
<link rel="icon" href="https://reactjs.org/favicon.ico" />
</head>
<body>
<div id="root"></div>
<!-- Dependencies: React, React-DOM, and Babel -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.4.1/umd/react.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.4.1/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<!-- App -->
<script type="text/babel">
const App = () => <div>Hello World</div>;
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