Question · JavaScript and React course · Module 6: React Router

Hook useParams

The useParams hook allows you to:

Answer options

  • Access the navigation history
  • Set query parameters
  • Read parameters from the URL (e.g., :id)
  • Check if a Route is active

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