Skip to content

Commit 50b2fe8

Browse files
Add note about useId being allowed in non-async SCs
1 parent 5138e60 commit 50b2fe8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/content/reference/react/useId.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
title: useId
33
---
44

5+
<RSC>
6+
7+
`useId` is allowed in non-async [Server Components](/reference/rsc/server-components).
8+
9+
</RSC>
10+
511
<Intro>
612

713
`useId` is a React Hook for generating unique IDs that can be passed to accessibility attributes.

0 commit comments

Comments
 (0)