Created
April 4, 2018 00:27
-
-
Save andrewmcnamara/dfb0e518c81b5ba12757a3bc62dd6388 to your computer and use it in GitHub Desktop.
react_example.html
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
| <div id="root"></div> | |
| <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
| <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
| <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> | |
| <script type="text/babel"> | |
| class Greeting extends React.Component { | |
| render() { | |
| return (<p>Hello world</p>); | |
| } | |
| } | |
| ReactDOM.render( | |
| <Greeting />, | |
| document.getElementById('root') | |
| ); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment