Open Elue-dev opened 1 year ago
I have been searching for the equivalent of useLocation for Preact but couldn't find any, is there one?
I think it's related to this: https://developer.mozilla.org/en-US/docs/Web/API/Location Location.pathname
const searchParams = new URLSearchParams(location.search); URLSearchParams - Web API
I have been searching for the equivalent of useLocation for Preact but couldn't find any, is there one?