Open sibelius opened 5 years ago
does it make sense a codemod to migrate all hot(module) usage to only hot?
this code:
import { hot } from 'react-hot-loader' const App = () => <div>Hello World!</div> export default hot(module)(App)
will be transformed into this one:
import { hot } from 'react-hot-loader/root' const App = () => <div>Hello World!</div> export default hot(App)
I've made it here https://github.com/sibelius/react-hot-loader-codemod
let me know if you want to bring this code to this repo or add this to readme
That's awesome, and worth to be mentioned in a readme.
does it make sense a codemod to migrate all hot(module) usage to only hot?
this code:
will be transformed into this one: