Skip to content

Commit 5532a01

Browse files
Revert "docs: Add useOptimistic hook description to hooks reference page (#8571)" (#8729)
This reverts commit 6be2e2a.
1 parent 6be2e2a commit 5532a01

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎src/content/reference/react/hooks.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ To add state to a component, use one of these Hooks:
1818

1919
* [`useState`](/reference/react/useState) declares a state variable that you can update directly.
2020
* [`useReducer`](/reference/react/useReducer) declares a state variable with the update logic inside a [reducer function.](/learn/extracting-state-logic-into-a-reducer)
21-
* [`useOptimistic`](/reference/react/useOptimistic) lets you show a different state while an async action is pending.
2221

2322
```js
2423
function ImageGallery() {

0 commit comments

Comments
 (0)