Window.location.href or Window.location.replace() to redirect to url.true - default) or an HTTP redirect (false).const redirect = (url, asLink = true) => asLink ? (window.location.href = url) : window.location.replace(url);
redirect('https://google.com');Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️