react router js redirect component code example Example: javascript redirect window.location.href = "http://mywebsite.com/home.html";