2015-07-14 22:46:44 +03:00
|
|
|
import 'todomvc-app-css/index.css';
|
2015-10-17 04:11:16 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
2016-04-18 15:28:26 +03:00
|
|
|
import { AppContainer } from 'react-hot-loader';
|
2015-10-17 04:11:16 +03:00
|
|
|
import configureStore from './store/configureStore';
|
|
|
|
import Root from './containers/Root';
|
|
|
|
|
|
|
|
const store = configureStore();
|
2015-07-14 22:46:44 +03:00
|
|
|
|
2015-10-17 04:11:16 +03:00
|
|
|
render(
|
2016-07-07 16:17:50 +03:00
|
|
|
<AppContainer>
|
|
|
|
<Root
|
|
|
|
store={ store }
|
|
|
|
/>
|
|
|
|
</AppContainer>,
|
2015-07-14 22:46:44 +03:00
|
|
|
document.getElementById('root')
|
|
|
|
);
|
2016-04-18 15:28:26 +03:00
|
|
|
|
|
|
|
if (module.hot) {
|
|
|
|
module.hot.accept('./containers/Root', () => {
|
|
|
|
render(
|
2016-07-07 16:17:50 +03:00
|
|
|
<AppContainer>
|
|
|
|
<Root
|
|
|
|
store={ store }
|
|
|
|
/>
|
|
|
|
</AppContainer>,
|
2016-04-18 15:28:26 +03:00
|
|
|
document.getElementById('root')
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|