From 3abad9560cdf7c2fff5023e5f3eb4621569cb916 Mon Sep 17 00:00:00 2001 From: Sebastian Legarraga <64795732+slegarraga@users.noreply.github.com> Date: Sat, 8 Aug 2026 17:11:15 -0400 Subject: [PATCH] docs: add useOptimistic to Hooks overview Signed-off-by: Sebastian Legarraga <64795732+slegarraga@users.noreply.github.com> --- src/content/reference/react/hooks.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/reference/react/hooks.md b/src/content/reference/react/hooks.md index ab48b644b7f..a8586f9f672 100644 --- a/src/content/reference/react/hooks.md +++ b/src/content/reference/react/hooks.md @@ -18,6 +18,7 @@ To add state to a component, use one of these Hooks: * [`useState`](/reference/react/useState) declares a state variable that you can update directly. * [`useReducer`](/reference/react/useReducer) declares a state variable with the update logic inside a [reducer function.](/learn/extracting-state-logic-into-a-reducer) +* [`useOptimistic`](/reference/react/useOptimistic) lets you show a different state while an async action is pending. ```js function ImageGallery() {