mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Change the word 'Function' to 'Component' (#7741)
* Change the word 'Function' to 'Component' * Trigger actions
This commit is contained in:
@@ -54,7 +54,7 @@ function EmptyNote () {
|
||||
}
|
||||
```
|
||||
|
||||
When React renders the `EmptyNote` Server Function, it will create a reference to the `createNoteAction` function, and pass that reference to the `Button` Client Component. When the button is clicked, React will send a request to the server to execute the `createNoteAction` function with the reference provided:
|
||||
When React renders the `EmptyNote` Server Component, it will create a reference to the `createNoteAction` function, and pass that reference to the `Button` Client Component. When the button is clicked, React will send a request to the server to execute the `createNoteAction` function with the reference provided:
|
||||
|
||||
```js {5}
|
||||
"use client";
|
||||
|
||||
Reference in New Issue
Block a user