mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-30 05:23:53 +03:00
29 lines
629 B
JavaScript
29 lines
629 B
JavaScript
import 'todomvc-app-css/index.css';
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import { AppContainer } from 'react-hot-loader';
|
|
import configureStore from './store/configureStore';
|
|
import Root from './containers/Root';
|
|
|
|
const store = configureStore();
|
|
|
|
render(
|
|
<AppContainer
|
|
component={Root}
|
|
props={{ store }}
|
|
/>,
|
|
document.getElementById('root')
|
|
);
|
|
|
|
if (module.hot) {
|
|
module.hot.accept('./containers/Root', () => {
|
|
render(
|
|
<AppContainer
|
|
component={require('./containers/Root').default}
|
|
props={{ store }}
|
|
/>,
|
|
document.getElementById('root')
|
|
);
|
|
});
|
|
}
|