We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c20c4 commit 08c8a0fCopy full SHA for 08c8a0f
src/content/reference/react/useOptimistic.md
@@ -7,7 +7,7 @@ title: useOptimistic
7
`useOptimistic` is a React Hook that lets you optimistically update the UI.
8
9
```js
10
-const [optimisticState, addOptimistic] = useOptimistic(state, reducer?);
+const [optimistic, setOptimistic] = useOptimistic(state, reducer?);
11
```
12
13
</Intro>
0 commit comments