use-id
Generates memoized random id
Import
Source
Docs
Package
Usage
use-id
hook generates a random id that persists across renders.
The hook is usually used to bind input elements to labels.
The generated random id is saved to ref and will not change unless the component is unmounted.