0

React JS Routers

import { BrowserRouter as Router, Switch, Route, Link, BrowserRouter } from "react-router-dom"; function App() { return ( <Router> <div> <Login></Login> <switch> <Route path='signups'> <Signup /> </Route> </switch> </div> </Router> in another component i have give <h5 className="links"> <redirect to="/Signups">Don't have an account(Signup)</redirect> </h5> the redirect link This code is not working as i am getting a blank white page. can anyone help?

7th Nov 2022, 6:03 PM
krishna kishore
krishna kishore - avatar
1 Respuesta
0
Switch is no longer used. Look at this : https://www.sololearn.com/discuss/3099579/?ref=app
8th Nov 2022, 6:15 AM
Roland
Roland - avatar