February 2019
Intermediate to advanced
204 pages
4h 52m
English
Loading the hot module (https://github.com/gaearon/react-hot-loader) is a method of updating code in the React/Redux project without having to refresh the page. This means code changes will be automatically applied when we save a file without a full browser refresh. To set up the react-hot-loader module, follow these steps:
yarn add react-hot-loader@next --dev --exactornpm install --save-dev react-hot-loader@next
{
"plugins": ["react-hot-loader/babel"]
}
import { hot } from 'react-hot-loader/root'
const App = () => <div>Hello World!</div>
export default hot(App)
Read now
Unlock full access