Created
April 26, 2016 16:25
-
-
Save MitMaro/da1eb9cfbc4cdbc8689fe3c2d9898512 to your computer and use it in GitHub Desktop.
Basic Hello World in React
This file contains hidden or 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" /> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.js"></script> | |
| <title>Hello World</title> | |
| </head> | |
| <body> | |
| <div id="container"></div> | |
| <script> | |
| document.body.onload = function(){ | |
| ReactDOM.render( | |
| React.createElement('h1', null, 'Hello World!'), | |
| document.getElementById('container') | |
| ); | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment