2016-11-09 00:54:54 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { render } from 'react-dom';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { Router, browserHistory } from 'react-router';
|
|
|
|
import configureStore from './store';
|
|
|
|
import routes from './routes';
|
|
|
|
|
|
|
|
require('./styles/main.scss');
|
|
|
|
|
|
|
|
const history = browserHistory;
|
|
|
|
const initialState = window.__INITIAL_STATE__;
|
|
|
|
const store = configureStore(initialState);
|
|
|
|
|
|
|
|
render(
|
|
|
|
<Provider store={store}>
|
|
|
|
<Router history={history} routes={routes(store)} />
|
|
|
|
</Provider>,
|
2017-02-22 20:29:35 +01:00
|
|
|
document.getElementById('root')
|
2016-11-09 00:54:54 +01:00
|
|
|
);
|