Last active
May 20, 2019 07:34
-
-
Save paulallies/5a9544c6a805ab080bfcef3506fcd47a to your computer and use it in GitHub Desktop.
without react create app index.js
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
import React from 'react'; | |
import { render } from 'react-dom'; | |
import App from './components/app'; | |
const rootEl = document.getElementById('app'); | |
render(<App />, rootEl); | |
if (module.hot) { | |
module.hot.accept(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment