Skip to content

Commit cab578d

Browse files
authored
Fix server/client typo in <form> docs
Fixes #6601
1 parent bb3a0f5 commit cab578d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export default function Search() {
322322

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

325-
1. `<form>` be rendered by a [Server Component](/reference/react/use-client)
325+
1. `<form>` be rendered by a [Client Component](/reference/react/use-client)
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

0 commit comments

Comments
 (0)