-
Notifications
You must be signed in to change notification settings - Fork 789
Closed
Description
Description
I am upgrading to react-hot-loader@next
const render = Component => {
ReactDOM.render(
<HotContainer>
<Provider store={store}>
<Router history={history}>{Component}</Router>
</Provider>
</HotContainer>,
document.getElementById('app')
)
}
render(routesToRender)
if (module.hot) {
module.hot.accept('./index.js', () => {
render(
<Provider store={store}>
<Router history={history}>{routesToRender}</Router>
</Provider>
)
})
}
Expected behavior
I expect to render my <Provider> and its children
Actual behavior
It raises this:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.
Environment
React Hot Loader version: react-hot-loader@next
react-router v2.8.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels