Skip to content

Commit 6786e66

Browse files
committed
Change 'Server Actions' to 'Server Functions' to reflect latest convention mentioned in server-functions docs
1 parent 4bea66b commit 6786e66

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/blog/2024/12/05/react-19.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -371,25 +371,25 @@ To support React Server Components as a bundler or framework, we recommend pinni
371371

372372
For more, see the docs for [React Server Components](/reference/rsc/server-components).
373373

374-
### Server Actions {/*server-actions*/}
374+
### Server Functions {/*server-actions*/}
375375

376-
Server Actions allow Client Components to call async functions executed on the server.
376+
Server Functions allow Client Components to call async functions executed on the server.
377377

378-
When a Server Action is defined with the `"use server"` directive, your framework will automatically create a reference to the server function, and pass that reference to the Client Component. When that function is called on the client, React will send a request to the server to execute the function, and return the result.
378+
When a Server Functions is defined with the [`"use server"`](/reference/rsc/use-server) directive and is used by a Client Component, your framework will automatically create a reference to the server function, and pass that reference to the Client Component. When that function is called on the client, React will send a request to the server to execute the function, and return the result.
379379

380380
<Note>
381381

382382
#### There is no directive for Server Components. {/*there-is-no-directive-for-server-components*/}
383383

384-
A common misunderstanding is that Server Components are denoted by `"use server"`, but there is no directive for Server Components. The `"use server"` directive is used for Server Actions.
384+
A common misunderstanding is that Server Components are denoted by `"use server"`, but there is no directive for Server Components. The `"use server"` directive is used for Server Functions.
385385

386386
For more info, see the docs for [Directives](/reference/rsc/directives).
387387

388388
</Note>
389389

390-
Server Actions can be created in Server Components and passed as props to Client Components, or they can be imported and used in Client Components.
390+
Server Functions can be created in Server Components and passed as props to Client Components, or they can be imported and used in Client Components.
391391

392-
For more, see the docs for [React Server Actions](/reference/rsc/server-actions).
392+
For more, see the docs for [React Server Functions](/reference/rsc/server-actions).
393393

394394
## Improvements in React 19 {/*improvements-in-react-19*/}
395395

0 commit comments

Comments
 (0)