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