Skip to content

Instantly share code, notes, and snippets.

@chrisabrams
Created January 5, 2018 02:58
Show Gist options
  • Save chrisabrams/293a08cfb98b6d8f0bb5aff4464f5874 to your computer and use it in GitHub Desktop.
Save chrisabrams/293a08cfb98b6d8f0bb5aff4464f5874 to your computer and use it in GitHub Desktop.

Revisions

  1. chrisabrams created this gist Jan 5, 2018.
    10 changes: 10 additions & 0 deletions example works
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    // start.js
    import React from 'react'
    import ReactDOM from 'react-dom'

    import { hot } from 'react-hot-loader'

    const App = () => <div>Hello World!! 4</div>
    const HotApp = hot(module)(App)

    ReactDOM.render(<HotApp />, document.getElementById('root'))