Created
June 23, 2019 16:44
-
-
Save methodbox/77d93217e4912ace4172968818b023ae to your computer and use it in GitHub Desktop.
Parcel Example - index.js
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
import * as React from "react"; | |
import * as ReactDOM from "react-dom"; | |
class App extends React.Component { | |
render() { | |
return ( | |
<div> | |
<h1>Hello, World.</h1> | |
</div> | |
); | |
} | |
} | |
const mountApp = document.getElementById("app"); | |
ReactDOM.render(<App />, mountApp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment