From bf1048941a30e931365d1db846bb3769edaf6222 Mon Sep 17 00:00:00 2001 From: chijiokeuhegwu Date: Sun, 30 Aug 2026 22:08:38 +0100 Subject: [PATCH] docs: add note about use(Context) support in React 19 to useContext reference Informs developers that starting in React 19, use(Context) can be used instead of useContext(Context) to read context inside conditionals and loops. --- src/content/reference/react/useContext.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/content/reference/react/useContext.md b/src/content/reference/react/useContext.md index 022277df40f..a419f95c024 100644 --- a/src/content/reference/react/useContext.md +++ b/src/content/reference/react/useContext.md @@ -12,6 +12,12 @@ const value = useContext(SomeContext) + + +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. + + + ---