Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/content/reference/react/useContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ const value = useContext(SomeContext)

</Intro>

<Note>

Starting in React 19, you can use [`use(Context)`](/reference/react/use) instead of `useContext(Context)`, which allows you to read context in conditionals and loops.

</Note>

<InlineToc />

---
Expand Down
Loading