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?
1 Answer
0
Switch is no longer used. Look at this :
https://www.sololearn.com/discuss/3099579/?ref=app