From 738db14cd72ad60db95ebef7417ca71b60abc866 Mon Sep 17 00:00:00 2001 From: flyingwood34 Date: Sat, 31 Oct 2026 05:36:36 +0530 Subject: [PATCH] Add useOptimistic to State Hooks reference --- 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..e67432baeaf 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 in progress. ```js function ImageGallery() {