text: import React from "react";
  import ReactDOM from "react-dom";
  import { createBrowserHistory } from "history";
  import { Router, Route, Switch } from "react-router-dom";
  import { Provider } from "react-redux";
  import store from "./redux/index.js";
  import axios from "axios";
  import "./assets/css/material-dashboard-react.css";
  
  import indexRoutes from "./routes/index.jsx";
  
  axios.defaults.withCredentials = true;
  
  const hist = createBrowserHistory();
  
  ReactDOM.render(
    <Provider store={store}>
      <Router history={hist}>
        <Switch>
          {indexRoutes.map((prop, key) => {
            return (
              <Route path={prop.path} component={prop.component} key={key} />
            );
          })}
        </Switch>
      </Router>
    </Provider>,
    document.getElementById("root")
  );
  