Solution for "how to redirect reactjs"

window.location.href = "http://mywebsite.com/home.html";

redirect react js

<Route exact path="/"> {loggedIn ? <Redirect to="/profile" /> : <HomePage />} </Route>

redirect react router

window.location.href = 'http://domain.com';

how to redirect to a website in react

Similar codes for "how to redirect reactjs"


Latest 'Javascript' questions

Added before "how to redirect reactjs"