react js redirect component 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>