Created
January 5, 2018 02:57
-
-
Save chrisabrams/e0fe9cf8ea7347fe2364cc46cf378412 to your computer and use it in GitHub Desktop.
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
// start.js | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import { hot } from 'react-hot-loader' | |
export default function start() { | |
const App = () => <div>Hello World!! 4</div> | |
const HotApp = hot(module)(App) | |
ReactDOM.render(<HotApp />, document.getElementById('root')) | |
} | |
// main.js | |
import start from './start' | |
start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment