Change the word 'Function' to 'Component' (#7741)

* Change the word 'Function' to 'Component'

* Trigger actions
This commit is contained in:
John Kapantzakis
2025-04-16 23:09:11 +03:00
committed by GitHub
parent 947681ea20
commit 4bea66b021

View File

@@ -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";