Skip to content

Commit eb1113d

Browse files
authored
More reverts
1 parent 626ff7d commit eb1113d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/rsc/server-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Client Components can import Server Functions from files that use the `"use serv
7979
export async function createNote() {
8080
await db.notes.create();
8181
}
82+
8283
```
8384

8485
When the bundler builds the `EmptyNote` Client Component, it will create a reference to the `createNote` function in the bundle. When the `button` is clicked, React will send a request to the server to execute the `createNote` function using the reference provided:
@@ -130,10 +131,8 @@ function UpdateName() {
130131
} else {
131132
setName('');
132133
}
133-
134134
})
135135
}
136-
137136
return (
138137
<form action={submitAction}>
139138
<input type="text" name="name" disabled={isPending}/>
@@ -153,6 +152,7 @@ Server Functions work with the new Form features in React 19.
153152

154153
You can pass a Server Function to a Form to automatically submit the form to the server:
155154

155+
156156
```js [[1, 3, "updateName"], [1, 7, "updateName"]]
157157
"use client";
158158

0 commit comments

Comments
 (0)