if (module.hot) {
// Enable Webpack hot module replacement for reducers
module.hot.accept('../reducers', () => {
const nextReducer = require('../reducers').default
store.replaceReducer(nextReducer)
})
}
这段代码不知道和热加载和redux有什么关系,还请解释一下
心有法竹
相关分类