Skip to content
zenui/react-hooks

useLocation

Track the pathname, query string and hash of the current URL. Updates on back and forward navigation, hash changes and history.pushState calls from client-side routers.

Level
Basic
Since
v1.0.0
import {useLocation} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device