content: import React from 'react';
  import { render } from 'react-dom';
  import { Provider } from 'react-redux';
  import { createStore, applyMiddleware } from 'redux';
  import thunk from 'redux-thunk';
  import promise from 'redux-promise';
  import createLogger from 'redux-logger';
  import allReducers from './reducers/reducers';
  import {Router, useRouterHistory} from 'react-router';
  import createBrowserHistory from 'history/lib/createBrowserHistory';
  import routes from './route'
  import './index.scss';
  import { ThemeProvider } from 'react-css-themr';
  import theme from './shared/theme/theme.js';
  
  const history = useRouterHistory(createBrowserHistory)({
      basename: '/'       // to serve this template from subdirectory, change the base path.
  })
  
  const store = createStore(
      allReducers,
      applyMiddleware(thunk, promise, createLogger)
  );
  render( <ThemeProvider theme={theme}>
              <Provider store={store}>
                  <Router history={history} routes={routes} />
              </Provider>
          </ThemeProvider>, document.getElementById('app'));