useHash

Read and set the hash of the URL and keep it updated.

This is custom React hooks, you need to follow the Basic Rules when you use it.

General

Change the hash and the value follows.

APIs

useHash

const useHash = () => [string, (value: string) => void]
Edit this page on GitHub