Unverified Commit 9fc904f4 authored by Tyler Lutz's avatar Tyler Lutz Committed by GitHub

docs: fix typos in Server Actions docs. (#51185)

parent cdfdaab6
......@@ -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() {
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment