mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-23 01:56:52 +03:00
Fixing deprecated issues in AppContainer
The following warnings are fixed. 1) warning.js:44 Warning: Failed prop type: Passing "props" prop to <AppContainer /> is deprecated. Replace <AppContainer component={App} props={{ myProp: myValue }} /> with <AppContainer><App myProp={myValue} /></AppContainer>. in AppContainer 2) Warning: Failed prop type: Passing "component" prop to <AppContainer /> is deprecated. Replace <AppContainer component={App} /> with <AppContainer><App /></AppContainer>. in AppContainer
This commit is contained in:
parent
ec0d55bbee
commit
8cdee0a358
|
@ -7,20 +7,22 @@ import Root from './containers/Root';
|
||||||
const store = configureStore();
|
const store = configureStore();
|
||||||
|
|
||||||
render(
|
render(
|
||||||
<AppContainer
|
<AppContainer>
|
||||||
component={Root}
|
<Root
|
||||||
props={{ store }}
|
store={ store }
|
||||||
/>,
|
/>
|
||||||
|
</AppContainer>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('./containers/Root', () => {
|
module.hot.accept('./containers/Root', () => {
|
||||||
render(
|
render(
|
||||||
<AppContainer
|
<AppContainer>
|
||||||
component={require('./containers/Root').default}
|
<Root
|
||||||
props={{ store }}
|
store={ store }
|
||||||
/>,
|
/>
|
||||||
|
</AppContainer>,
|
||||||
document.getElementById('root')
|
document.getElementById('root')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user