text: import React from "react";
  import ReactDOM from "react-dom";
  import { createBrowserHistory } from "history";
  import { HashRouter as Router, Route, Switch } from "react-router-dom";
  
  import "./assets/css/main.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} component={prop.component} key={key} />;
        })}
      </Switch>
    </Router>,
    document.getElementById("root")
  );
  