Last active
June 27, 2018 21:57
-
-
Save joshbuchea/d8247f70fdbdc03b6af803b00b11668e to your computer and use it in GitHub Desktop.
React Example: Bare Minimum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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