text: import React from 'react'
  import ReactDOM from 'react-dom'
  import createBrowserHistory from 'history/lib/createBrowserHistory'
  import { useRouterHistory } from 'react-router'
  import { syncHistoryWithStore } from 'react-router-redux'
  import Immutable from 'immutable'
  
  import makeRoutes from './routes'
  import Root from './containers/Root'
  import configureStore from './redux/configureStore'
  
  // Configure history for react-router
  const browserHistory = useRouterHistory(createBrowserHistory)({
    basename: __BASENAME__
  })
  
  const initialState = Immutable.Map()
  const store = configureStore(initialState, browserHistory)
  const history = syncHistoryWithStore(browserHistory, store, {
    selectLocationState: (state) => state.get('router').toJS()
  })
  
  // Now that we have the Redux store, we can create our routes. We provide
  // the store to the route definitions so that routes have access to it for
  // hooks such as `onEnter`.
  const routes = makeRoutes(store)
  
  // Now that redux and react-router have been configured, we can render the
  // React application to the DOM!
  ReactDOM.render(
    <Root history={history} routes={routes} store={store} />,
    document.getElementById('root')
  )
  