Skip to content

Commit

Permalink
Merge branch 'main' into sync-4f9e9a56
Browse files Browse the repository at this point in the history
  • Loading branch information
khakimio authored Dec 4, 2023
2 parents 3c9e780 + 6020e27 commit 1a0b7ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/content/reference/react-dom/components/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ To display an input, render the [built-in browser `<input>`](https://developer.m
<Canary>

React's extensions to the `formAction` prop are currently only available in React's Canary and experimental channels. In stable releases of React `formAction` works only as a [built-in browser HTML component](https://react.dev/reference/react-dom/components#all-html-components). Learn more about [React's release channels here](/community/versioning-policy#all-release-channels).

</Canary>

[`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): A string or function. Overrides the parent `<form action>` for `type="submit"` and `type="image"`. When a URL is passed to `action` the form will behave like a standard HTML form. When a function is passed to `formAction` the function will handle the form submission. See [`<form action>`](/reference/react-dom/components/form#props).
Expand Down
1 change: 1 addition & 0 deletions src/content/reference/react/use-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ function UsernameForm() {

Note that like most Hooks, `useFormState` can only be called in <CodeStep step={1}>[client code](/reference/react/use-client)</CodeStep>.


### Calling a Server Action outside of `<form>` {/*calling-a-server-action-outside-of-form*/}

Server Actions are exposed server endpoints and can be called anywhere in client code.
Expand Down
3 changes: 2 additions & 1 deletion src/sidebarReference.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
},
{
"title": "useTransition",
"path": "/reference/react/useTransition"
"path": "/reference/react/useTransition",
"canary": true
}
]
},
Expand Down

0 comments on commit 1a0b7ca

Please sign in to comment.