You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/blog/2024/12/05/react-19.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -371,25 +371,25 @@ To support React Server Components as a bundler or framework, we recommend pinni
371
371
372
372
For more, see the docs for [React Server Components](/reference/rsc/server-components).
373
373
374
-
### Server Actions {/*server-actions*/}
374
+
### Server Functions {/*server-actions*/}
375
375
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.
377
377
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.
379
379
380
380
<Note>
381
381
382
382
#### There is no directive for Server Components. {/*there-is-no-directive-for-server-components*/}
383
383
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.
385
385
386
386
For more info, see the docs for [Directives](/reference/rsc/directives).
387
387
388
388
</Note>
389
389
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.
391
391
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).
393
393
394
394
## Improvements in React 19 {/*improvements-in-react-19*/}
0 commit comments