Javascript – How to set specific path in react-router-dom?
I would to for the URL in the adress bar to show "/login" when im in the login page. // App.js <Routes> {isLoggedIn ? ( <Route path="/" element={<Root onLogout={handleLogout} />}> <Route index element={<Topics />} /> <Route path="employees" element={<EmployeeList />} />…