import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { Root, configureStore } from './root'

const store = configureStore()
const history = syncHistoryWithStore(browserHistory, store)

render(<Root store={store} history={history} />, document.getElementById('root'))
