use-id hook generates random id that persists across renders.
Hook is usually used to bind input elements to labels.
Generated random id is saved to ref and will not change unless component is unmounted.
Hook will use React useId under the hood
if it is available (
react@>=18.0 is required).