Skip to content

Commit 7270ea2

Browse files
authored
docs: Capitalize Action in useActionState docs
1 parent 2da4f7f commit 7270ea2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/useActionState.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: useActionState
44

55
<Intro>
66

7-
`useActionState` is a Hook that allows you to update state based on the result of a form action.
7+
`useActionState` is a Hook that allows you to update state based on the result of a form Action.
88

99
```js
1010
const [state, formAction, isPending] = useActionState(fn, initialState, permalink?);
@@ -29,7 +29,7 @@ In earlier React Canary versions, this API was part of React DOM and called `use
2929
3030
{/* TODO T164397693: link to actions documentation once it exists */}
3131
32-
Call `useActionState` at the top level of your component to create component state that is updated [when a form action is invoked](/reference/react-dom/components/form). You pass `useActionState` an existing form action function as well as an initial state, and it returns a new action that you use in your form, along with the latest form state and whether the Action is still pending. The latest form state is also passed to the function that you provided.
32+
Call `useActionState` at the top level of your component to create component state that is updated [when a form Action is invoked](/reference/react-dom/components/form). You pass `useActionState` an existing form action function as well as an initial state, and it returns a new action that you use in your form, along with the latest form state and whether the Action is still pending. The latest form state is also passed to the function that you provided.
3333
3434
```js
3535
import { useActionState } from "react";

0 commit comments

Comments
 (0)