We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
useId
1 parent 50b2fe8 commit 2209564Copy full SHA for 2209564
src/content/reference/react/useId.md
@@ -2,12 +2,6 @@
2
title: useId
3
---
4
5
-<RSC>
6
-
7
-`useId` is allowed in non-async [Server Components](/reference/rsc/server-components).
8
9
-</RSC>
10
11
<Intro>
12
13
`useId` is a React Hook for generating unique IDs that can be passed to accessibility attributes.
@@ -52,6 +46,8 @@ function PasswordField() {
52
46
53
47
* `useId` **should not be used to generate keys** in a list. [Keys should be generated from your data.](/learn/rendering-lists#where-to-get-your-key)
54
48
49
+* `useId` currently cannot be used in [async Server Components](/reference/rsc/server-components#async-components-with-server-components).
50
+
55
51
56
57
## Usage {/*usage*/}
0 commit comments