mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-02 14:33:52 +03:00
32 lines
694 B
JavaScript
32 lines
694 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>
|
|
<Root
|
|
store={ store }
|
|
/>
|
|
</AppContainer>,
|
|
document.getElementById('root')
|
|
);
|
|
|
|
if (module.hot) {
|
|
module.hot.accept('./containers/Root', () => {
|
|
const RootContainer = require('./containers/Root').default;
|
|
render(
|
|
<AppContainer>
|
|
<RootContainer
|
|
store={ store }
|
|
/>
|
|
</AppContainer>,
|
|
document.getElementById('root')
|
|
);
|
|
});
|
|
}
|