gaearon / gaearon/react-hot-loader

codemod to upgrade to 4.5.0+

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

Description

does it make sense a codemod to migrate all hot(module) usage to only hot?

this code:
```jsx
import { hot } from 'react-hot-loader'
const App = () =>

Hello World!

export default hot(module)(App)
```

will be transformed into this one:
```
import { hot } from 'react-hot-loader/root'
const App = () =>

Hello World!

export default hot(App)
```

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.