how to redirect from react router dom code example
Example 1: javascript redirect
window.location.href = "http://mywebsite.com/home.html";
Example 2: how to redirect to a website in react
window.location.href = 'http://domain.com';
window.location.href = "http://mywebsite.com/home.html";
window.location.href = 'http://domain.com';