const navigate = useNavigate(); const goToLoginPage = () => navigate('/login');
window.location.href = 'http://domain.com';