Merge pull request #300 from rajeshaz09/master

Fixing deprecated issues in AppContainer
This commit is contained in:
Mihail Diordiev 2016-07-07 18:39:00 +03:00 committed by GitHub
commit 7ef8aa74db
2 changed files with 20 additions and 16 deletions

View File

@ -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')
); );
}); });

View File

@ -8,20 +8,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')
); );
}); });