Skip to content

Commit

Permalink
docs: fix typos in Server Actions docs. (#51185)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-lutz committed Jun 12, 2023
1 parent cdfdaab commit 9fc904f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function AddToCart({ productId }) {
#### `formAction`
You can use `formAction` prop to handle **Form Actions** on elements such as `button`, `input type="submit"`, and `input type="image"`. The `formAction` prop takes presedence over the form's `action`.
You can use `formAction` prop to handle **Form Actions** on elements such as `button`, `input type="submit"`, and `input type="image"`. The `formAction` prop takes precedence over the form's `action`.
```jsx filename="app/form.js" highlight={15}
export default function Form() {
Expand Down Expand Up @@ -541,7 +541,7 @@ Actions are not Next.js or React Server Components specific, however, they are n
Actions are defined through the `action` prop on an element. Typically when building HTML forms, you pass a URL to the [`action` prop](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#action). With Actions, React now allows you to pass a function directly.
React also provides built-in solutions for [optimistic updates](#experimental-useoptimistic) with Actions. It's important to note new patterns are still being developed and new APIs may stil be added.
React also provides built-in solutions for [optimistic updates](#experimental-useoptimistic) with Actions. It's important to note new patterns are still being developed and new APIs may still be added.
### Form Actions
Expand Down

0 comments on commit 9fc904f

Please sign in to comment.