Variable useIdConst

useId: any = ...

Uses React 18's built-in useId() when available, or falls back to a slightly less performant (requiring a double render) implementation for earlier React versions.