Use Location components

Use Location

A hook to get the location of the component and the service worker

📍 useLocation Hook Preview

Observe changes in the browser's location state in real-time.

Triggered by: load

state

null

length

1

hash

host

hostname

href

origin

pathname

port

protocol

search

Variants list