content: import React from 'react';
  import ReactDOM from 'react-dom';
  import { Provider } from 'react-redux';
  import { Router, browserHistory } from 'react-router';
  import es6promise from 'es6-promise';
  import injectTapEventPlugin from 'react-tap-event-plugin';
  
  import configureStore  from './ducks/';
  import routes from './routes';
  
  // const initialState = {};
  const store = configureStore();
  const rootElement = document.getElementById('app');
  
  let ComponentEl;
  
  es6promise.polyfill();
  injectTapEventPlugin();
  
  if (process.env.NODE_ENV !== 'production') {
  
    // If using routes
    ComponentEl = (
      <div>
        <Router history={browserHistory} routes={routes} />
      </div>
    );
  } else {
    ComponentEl = (
      <div>
        <Router history={browserHistory} routes={routes} />
      </div>
    );
  }
  
  // Render the React application to the DOM
  ReactDOM.render(
    <Provider store={store}>
      {ComponentEl}
    </Provider>,
    rootElement
  );
  