Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

function that redirects to another page react

const navigate = useNavigate();
const goToLoginPage = () => navigate('/login');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #function #redirects #page #react
ADD COMMENT
Topic
Name
5+6 =