redirect react to another site code example
Example 1: how to redirect to a website in react
window.location.href = 'http://domain.com';
Example 2: redirect to another path react
<span className="input-group-btn">
<Link to="/login" />Click to login</Link>
</span>