Click in order · JavaScript and React course · Module 6: React Router

Programmatic navigation with useNavigate

Arrange the programmatic navigation code after login:

Items to click

  • '/dashboard'
  • );
  • navigate(
  • useNavigate();
  • const navigate
  • =

You can check the correct answer by solving this task in the CodeWorlds game.