Skip to content

Commit 5d2113b

Browse files
typos (#6390)
1 parent 4b333ca commit 5d2113b

File tree

1 file changed

+2
-2
lines changed
  • src/content/reference/react-dom/components

1 file changed

+2
-2
lines changed

src/content/reference/react-dom/components/form.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Displaying a form submission error message before the JavaScript bundle loads fo
326326
1. the function passed to the `<form>`'s `action` prop be a [Server Action](/reference/react/use-server)
327327
1. the `useFormState` Hook be used to display the error message
328328

329-
`useFormState` takes two parameters: a [Server Action](/reference/react/use-server) and an inital state. `useFormState` returns two values, a state variable and an action. The action returned by `useFormState` should be passed to the `action` prop of the form. The state varible returned by `useFormState` can be used to displayed an error message. The value returned by the [Server Action](/reference/react/use-server) passed to `useFormState` will be used to update the state variable.
329+
`useFormState` takes two parameters: a [Server Action](/reference/react/use-server) and an initial state. `useFormState` returns two values, a state variable and an action. The action returned by `useFormState` should be passed to the `action` prop of the form. The state variable returned by `useFormState` can be used to displayed an error message. The value returned by the [Server Action](/reference/react/use-server) passed to `useFormState` will be used to update the state variable.
330330

331331
<Sandpack>
332332

@@ -392,7 +392,7 @@ Learn more about updating state from a form action with the [`useFormState`](/re
392392

393393
Forms can be designed to handle multiple submission actions based on the button pressed by the user. Each button inside a form can be associated with a distinct action or behavior by setting the `formAction` prop.
394394

395-
When a user taps a specific button, the form is submitted, and a corresponding action, defined by that button's attributes and action, is executed. For instance, a form might submit an article for review by default but have a seperate button with `formAction` set to save the article as a draft.
395+
When a user taps a specific button, the form is submitted, and a corresponding action, defined by that button's attributes and action, is executed. For instance, a form might submit an article for review by default but have a separate button with `formAction` set to save the article as a draft.
396396

397397
<Sandpack>
398398

0 commit comments

Comments
 (0)