redirection in react js code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: react router redirect
<span className="input-group-btn">
<Link to="/login" />Click to login</Link>
</span>
window.location.href = "http://mywebsite.com/home.html";
<span className="input-group-btn">
<Link to="/login" />Click to login</Link>
</span>