text: import React from 'react';
  import ReactDOM from 'react-dom';
  import { createBrowserHistory } from 'history';
  import {
      Router,
      IndexRoute,
      Route,
      Switch
  } from 'react-router-dom';
  
  import 'bootstrap/dist/css/bootstrap.css';
  import 'assets/scss/now-ui-dashboard.css';
  import 'assets/css/demo.css';
  
  import indexRoutes from 'routes/index.jsx';
  
  const hist = createBrowserHistory();
  
  ReactDOM.render(
      <Router history={hist}>
          <Switch>
              {
                  indexRoutes.map((prop,key) => {
                      return (                               
                          <Route
                              path={prop.path}
                              key={key}
                              component={prop.component}
                          />
                      );
                  })
              }
          </Switch>
      </Router>
  , document.getElementById('root'));