diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 04db964e..2a439d39 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -580,7 +580,7 @@ Returns a stateful value for the pending state of the transition, and a function ```js startTransition(() => { setCount(count + 1); -}) +}); ``` `isPending` indicates when a transition is active to show a pending state: @@ -593,7 +593,7 @@ function App() { function handleClick() { startTransition(() => { setCount(c => c + 1); - }) + }); } return (