What is useId?
React Hooks Basics
Audio flashcard · 0:12Nortren·
What is useId?
0:12
useId is a hook that generates a unique, stable identifier that is consistent across server and client rendering. It is useful for associating labels with form inputs or any case where a unique ID is needed without causing hydration mismatches.