From b5c3fe631d847130672a9b6dc40ed933b921eca2 Mon Sep 17 00:00:00 2001 From: WarTeamX Date: Sun, 2 Aug 2026 11:20:09 +0200 Subject: [PATCH] docs: Add useOptimistic hook description to hooks reference page --- 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() {