UNPKG

@rbxts/react-hooks

Version:

Generated by [Rojo](https://github.com/rojo-rbx/rojo) 7.4.0.

10 lines (9 loc) 356 B
/** * The `useId` 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. * * @param staticId A static id to use instead of a generated one. */ export declare function useId(staticId?: string): string;