content: import 'core-js/fn/object/assign';
  import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { Router, browserHistory } from 'react-router';
  import { syncHistoryWithStore } from 'react-router-redux';
  import createRoutes from 'routes';
  import configureStore from 'stores/configureStore';
  
  const initialState = window.__INITIAL_STATE__;
  
  const store = configureStore(initialState, browserHistory);
  const history = syncHistoryWithStore(browserHistory, store);
  const routes = createRoutes();
  
  function onUpdate() {
    // Prevent duplicate fetches when first loaded.
    if (window.__INITIAL_STATE__ !== null) {
      window.__INITIAL_STATE__ = null;
      return;
    }
  }
  
  // Render the main component into the dom
  ReactDOM.render(
    <Provider store={store}>
      <Router history={history} onUpdate={onUpdate}>
        {routes}
      </Router>
    </Provider>,
    document.getElementById('app')
  );
  