content: import React from 'react';
  import {render} from 'react-dom';
  import {Provider} from 'react-redux';
  import createLogger from 'redux-logger';
  import thunkMiddleware from 'redux-thunk';
  import {Route, Switch} from 'react-router-dom';
  import {createStore, applyMiddleware} from 'redux';
  import createHistory from 'history/createBrowserHistory';
  import {ConnectedRouter, routerMiddleware} from 'react-router-redux';
  
  import './css/index.css';
  import reducers from './js/reducers';
  import {ArticleList, Article} from './js/containers';
  
  const history = createHistory();
  
  const store = createStore(
      reducers,
      applyMiddleware(
          createLogger,
          thunkMiddleware,
          routerMiddleware(history)
      )
  );
  
  render((
      <Provider store={store}>
          <ConnectedRouter history={history}>
              <Switch>
                  <Route exact path="/" component={ArticleList}/>
                  <Route path="/a/:id" component={Article}/>
                  <Route component={({location}) => <div>404 {location.pathname}</div>}/>
              </Switch>
          </ConnectedRouter>
      </Provider>
  ), document.querySelector('#app'));