Direction: Choose the correct option
Q1.
Given a route path '/user/:id', how do you extract the 'id' parameter in the component?
Direction: Choose the correct option
Q2.
What is a route parameter?
Direction: Choose the correct option
Q3.
How do you access query parameters (like ?search=react) in React Router v6?
Direction: Choose the correct option
Q4.
Which of the following is a valid path with a parameter?
Direction: Choose the correct option
Q5.
What happens if you navigate to '/user/123' and the route is '/user/:id'?
