2016-05-05 23:48:26 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { render } from 'react-dom'
|
|
|
|
import { Provider } from 'react-redux'
|
2016-05-18 19:37:59 +02:00
|
|
|
import { Router, browserHistory } from 'react-router'
|
2016-06-22 19:49:06 +02:00
|
|
|
import configureStore from './store'
|
|
|
|
import routes from './routes'
|
2016-05-05 23:48:26 +02:00
|
|
|
|
2016-06-23 00:52:55 +02:00
|
|
|
require('./styles/main.scss');
|
2016-05-10 20:18:36 +02:00
|
|
|
|
2016-05-18 19:37:59 +02:00
|
|
|
const history = browserHistory
|
2016-05-05 23:48:26 +02:00
|
|
|
const initialState = window.__INITIAL_STATE__
|
|
|
|
const store = configureStore(initialState)
|
2016-05-03 06:09:16 +02:00
|
|
|
|
|
|
|
render(
|
2016-05-05 23:48:26 +02:00
|
|
|
<Provider store={store}>
|
2016-06-15 01:11:42 +02:00
|
|
|
<Router history={history} routes={routes(store)} />
|
2016-05-05 23:48:26 +02:00
|
|
|
</Provider>,
|
2016-05-03 06:09:16 +02:00
|
|
|
document.getElementById('root')
|
|
|
|
)
|