How to change default url in a react app?

How to change default url in a react app? So that the application does not open with http://localhost:3000/paper-dashboard-react, but localhost:3000?

routes.js:

import Dashboard from "views/Dashboard.js";
import Users from "views/Users.js";


var routes = [
{
path: "/dashboard",
name: "Dashboard",
icon: "nc-icon nc-bank",
component: Dashboard,
layout: "/admin",
},
{
path: "/users",
name: "Users",
icon: "nc-icon nc-single-02",
component: Users,
layout: "/admin",
},

];
export default routes;

Login.js:

export default function BasicExample() {
 return (
  <Router>
    <Switch>

      <Route path="/admin" render={(props) => <AdminLayout {...props} />} />
       <Route exact path="/paper-dashboard-react" component={Login}>
          <Login />
       </Route>
     </Switch>
   </Router> 
 )
}

Its a theme I downloaded from https://www.creative-tim.com/product/paper-dashboard-react.

Answer

I managed to do it like this:

<Route exact path="/paper-dashboard-react" component={Login}>
      <Login />
</Route>
<Route exact path="/" component={Login}>
      <Login />
</Route>


useEffect(() => {
   history_redirect.push("/");
})