Last active
October 28, 2019 23:05
-
-
Save sakukode/797632f70e5a3f7e080cf12446e86942 to your computer and use it in GitHub Desktop.
React untuk Pemula - Instalasi dan Setup
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> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Halo React</title> | |
| <script src="https://unpkg.com/react@16/umd/react.development.js"></script> | |
| <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> | |
| <script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| <!-- Penulisan Syntaks React di sini --> | |
| <script type="text/babel"> | |
| class App extends React.Component { | |
| render() { | |
| return <h1>Halo React!</h1> | |
| } | |
| } | |
| 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