[**@twipped/hooks**](../../README.md) • **Docs**

***

# Function: usePageHash()

> **usePageHash**(): `string`

State hook that tracks the page hash (#), triggering an update if it changes.

## Returns

`string`

The contents of the url hash, minus the leading hash symbol.

## Function

usePageHash

## Source

[hooks/usePageHash.js:11](https://github.com/Twipped/hooks/blob/main/hooks/usePageHash.js#L11)
