From 5d1c3c6752f1679c4783cf1abf4df6db1d2af6b1 Mon Sep 17 00:00:00 2001 From: Iitian001 Date: Wed, 26 Aug 2026 06:16:39 +0530 Subject: [PATCH] docs: add useOptimistic to Built-in React Hooks overview --- 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() {