Alex Z
Aug 7, 2021

--

Hey, to access the search params you just need to first initialize an object using the users href string, like let url = new URL(window.location.href) and then you can access the params like let idParam = url.searchParams.get(‘id’). Hope that helps!

--

--

Alex Z
Alex Z

Written by Alex Z

Software Developer + Product Manager. Interested in Travel, Culture, Economics and the Internet. Join Medium: https://tinycode.medium.com/membership

No responses yet