use-hash
Get and set hash value in the URL
Source
Docs
Package
Usage
use-hash returns hash from URL, subscribes to its changes with hashchange event
and allows changing it with setHash function:
Current hash:
Initial state value
By default, use-hash will retrieve value in useEffect. If you want to get initial value
as soon as hook is called, set getInitialValueInEffect to false. Note that this option is
not compatible with server side rendering – you can only use it if your app is client-side only.