mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-21 19:31:57 +00:00
Add note about useId being allowed in non-async Server Components (#7715)
This commit is contained in:
@@ -46,6 +46,8 @@ function PasswordField() {
|
||||
|
||||
* `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)
|
||||
|
||||
* `useId` currently cannot be used in [async Server Components](/reference/rsc/server-components#async-components-with-server-components).
|
||||
|
||||
---
|
||||
|
||||
## Usage {/*usage*/}
|
||||
|
||||
Reference in New Issue
Block a user