--- title: useId --- This section is incomplete, please see the old docs for [useId](https://reactjs.org/docs/hooks-reference.html#useid). `useId` is a hook for generating unique IDs that are stable across the server and client, while avoiding hydration mismatches. ```js const id = useId(); ``` `useId` is not for generating keys in a list. Keys should be generated from your data.