mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-01-31 11:51:41 +03:00
Merge pull request #300 from rajeshaz09/master
Fixing deprecated issues in AppContainer
This commit is contained in:
commit
7ef8aa74db
|
@ -7,20 +7,22 @@ import Root from './containers/Root';
|
|||
const store = configureStore();
|
||||
|
||||
render(
|
||||
<AppContainer
|
||||
component={Root}
|
||||
props={{ store }}
|
||||
/>,
|
||||
<AppContainer>
|
||||
<Root
|
||||
store={ store }
|
||||
/>
|
||||
</AppContainer>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
||||
if (module.hot) {
|
||||
module.hot.accept('./containers/Root', () => {
|
||||
render(
|
||||
<AppContainer
|
||||
component={require('./containers/Root').default}
|
||||
props={{ store }}
|
||||
/>,
|
||||
<AppContainer>
|
||||
<Root
|
||||
store={ store }
|
||||
/>
|
||||
</AppContainer>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
});
|
||||
|
|
|
@ -8,20 +8,22 @@ import Root from './containers/Root';
|
|||
const store = configureStore();
|
||||
|
||||
render(
|
||||
<AppContainer
|
||||
component={Root}
|
||||
props={{ store }}
|
||||
/>,
|
||||
<AppContainer>
|
||||
<Root
|
||||
store={ store }
|
||||
/>
|
||||
</AppContainer>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
||||
if (module.hot) {
|
||||
module.hot.accept('./containers/Root', () => {
|
||||
render(
|
||||
<AppContainer
|
||||
component={require('./containers/Root').default}
|
||||
props={{ store }}
|
||||
/>,
|
||||
<AppContainer>
|
||||
<Root
|
||||
store={ store }
|
||||
/>
|
||||
</AppContainer>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user