-1

I have an email verification URL. in which I have a user ID and a token. I can not figure it out that how I can extract user ID and token from the URL and also don't know how to set Route path for this URL.

http://localhost:3000/users/verify?user_id=1234565789&token=1234567689

You would have noticed a ? and an &. I want the values of ?user_id and &token, and set their route paths.

I am using React-router-dom v6

Usman Gill
  • 29
  • 3
  • 12
  • The search/query parameters are _not_ part of the route. If you want to know how to access them, read the docs: https://reactrouter.com/docs/en/v6/getting-started/tutorial – jonrsharpe May 16 '22 at 07:32

0 Answers0