Skip to content

useHash ​

Hook that manages the hash value

browser
test coverage
Last changed: last month

Installation ​

Library
CLI
Manual
typescript
import { useHash } from '@siberiacancode/reactuse';

Usage ​

typescript
const [hash, setHash] = useHash();

Demo ​

Api ​

Returns

UseHashReturn

Type declaration ​

typescript
type UseHashReturn = [string, (value: string) => void];

Source ​

Source • Demo

Contributors ​

D
debabin
debabin
H
hywax
hywax

Released under the MIT License.