I am using the following code to retrieve query parameters from URL but URLSearchParams returns an empty object. PS: uselocation.search returning correct output
I was working with query params, and got introduced to URLSearchParams. I am using it to form this kind of object to query, const x = { a: 'hello World' b: