Created
October 12, 2016 21:23
-
-
Save eins78/b59f1a06c7db37e90d0c93ca66879251 to your computer and use it in GitHub Desktop.
adapted from <https://facebook.github.io/react/docs/getting-started.html>. prompted by <https://twitter.com/dan_abramov/status/786307516896571392>
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> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello React!</title> | |
<script src="https://unpkg.com/react@15.3.1/dist/react.min.js"></script> | |
<script src="https://unpkg.com/react-dom@15.3.1/dist/react-dom.min.js"></script> | |
</head> | |
<body> | |
<div id="root"></div> | |
<script> | |
ReactDOM.render( | |
React.createElement('h1', {}, 'Hello, world!'), | |
document.getElementById('root') | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment