text: import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import promise from 'redux-promise';
  import { createStore, applyMiddleware } from 'redux';
  import { Router, browserHistory } from 'react-router';
  // router decides what to show on the screen
  // history is what part of the URL we actually care about
  // It can be browserHistory = whole URL
  // hashHistory - Part of URL after # only
  // memoryHistory
  
  import routes from './routes';
  import reducers from './reducers';
  
  const createStoreWithMiddleware = applyMiddleware(promise)(createStore);
  
  ReactDOM.render(
    <Provider store={createStoreWithMiddleware(reducers)}>
      <Router history={browserHistory} routes={routes} />
    </Provider>
    , document.querySelector('.container'));
  