gaearon / gaearon/react-hot-loader

How about not having hot in production at all?

Open
#1,204 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
775
PR merge metrics
No merged PRs in 30d

Description

I'm wondering if there is anything wrong with doing this:

```js
let App = Hi

if (module.hot) {
App = require('react-hot-loader/root').hot(App)
}

export default App
```

I think this does the same as what is proposed in the readme, and it is marginally more efficient after dead code removal.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.