/* @flow */
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 makeRoutes from './routes';
import Root from './containers/Root';
import configureStore from './redux/configureStore';

// Configure history for react-router
const browserHistory = useRouterHistory(createBrowserHistory)({
  basename: __BASENAME__
});

// Create redux store and sync with react-router-redux. We have installed the
// react-router-redux reducer under the key "router" in src/routes/index.js,
// so we need to provide a custom `selectLocationState` to inform
// react-router-redux of its location.
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState, browserHistory);
const history = syncHistoryWithStore(browserHistory, store, {
  selectLocationState: (state) => state.router
});

// 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')
);

@@ -77,434 +77,125 @@
 ort 
-createBrowserHistory from 'history/lib/createBrowserHistory';%0Aimport %7B useRouterHistory %7D from 'react-router';%0Aimport %7B syncHistoryWithStore %7D from 'react-router-redux';%0Aimport makeRoutes from './routes';%0Aimport Root from './containers/Root';%0Aimport configureStore from './redux/configureStore';%0A%0A// Configure history for react-router%0Aconst browserHistory = useRouterHistory(createBrowserHistory)(%7B%0A  basename: __BASENAME__%0A%7D)
+makeRoutes from './routes';%0Aimport Root from './containers/Root';%0Aimport configureStore from './redux/configureStore'
 ;%0A%0A/
@@ -547,135 +547,12 @@
 te, 
-browserHistory);%0Aconst history = syncHistoryWithStore(browserHistory, store, %7B%0A  selectLocationState: (state) =%3E state.router%0A%7D
+null
 );%0A%0A
@@ -905,23 +905,20 @@
 istory=%7B
-history
+null
 %7D routes

Remove browser history for now