Skip to content

Commit

Permalink
Fix server/client typo in <form> docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdj-uk committed Feb 12, 2024
1 parent bb3a0f5 commit cab578d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/components/form.md
Expand Up @@ -322,7 +322,7 @@ export default function Search() {

Displaying a form submission error message before the JavaScript bundle loads for progressive enhancement requires that:

1. `<form>` be rendered by a [Server Component](/reference/react/use-client)
1. `<form>` be rendered by a [Client Component](/reference/react/use-client)
1. the function passed to the `<form>`'s `action` prop be a [Server Action](/reference/react/use-server)
1. the `useFormState` Hook be used to display the error message

Expand Down

0 comments on commit cab578d

Please sign in to comment.