Created
February 19, 2019 19:21
-
-
Save SnoopSqueak/d3b18cf1a53c0bc1a737bd9f5b00dc45 to your computer and use it in GitHub Desktop.
React implementation of Hello World
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> | |
| <title>My First React app</title> | |
| </head> | |
| <body> | |
| <div id="app"></div> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.1.0/umd/react.development.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.1.0/umd/react-dom.development.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script> | |
| <script type="text/babel"> | |
| class Greeting extends React.Component { | |
| render() { | |
| return ( | |
| <div> | |
| <h1>Hello World!</h1> | |
| </div> | |
| ); | |
| } | |
| } | |
| ReactDOM.render( | |
| <Greeting />, document.getElementById('app') | |
| ); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment