text: import React from "react";
  import ReactDOM from "react-dom";
  import {createBrowserHistory} from "history";
  import {Router, Route, Switch} from "react-router-dom";
  
  import "assets/css/material-dashboard-react.css?v=1.5.0";
  
  import indexRoutes from "routes/index.jsx"; 
  
  
  const hist = createBrowserHistory();
   
  
  function frmReducer(state, action) {
      switch (action.type) {
          case "ISIM_GUNCELLE":
              return action.adi;
          default:
              return state;
  
      } 
  }
    
  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"));
  