How to fetch params from
props.location.search
where i tried
const { propKey, propEid } = new URLSearchParams(props.location.search);
but propKey and propEid shows unidentified in console.log
my url is like so:
{{baseurl}}/verify-email?key=a6d16a22a82f16c96ee7d2f95c45c9bc&eid=c2Frc2hpMTFAZ21haWwuY29t
props.location.search& why are u destructuringURLSearchParams?.getto get values fromURLSearchParams.URLSearchParamscan handle that (as Agney pointed out) checkout developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/…