Skip to content

Commit

Permalink
Merge pull request #1169 from utkukaratas/main
Browse files Browse the repository at this point in the history
"server$" -> "use server"
  • Loading branch information
nksaraf authored Dec 28, 2023
2 parents 4747547 + daba5f2 commit dfe88c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/routes/api/server.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const logHello = async (message: string) => {

### Basic usage

To create a function that only runs on the server, pass a function as a parameter to `server$`.
To create a function that only runs on the server, insert `"use server"` directive at the top of the function.

```tsx twoslash {4-6}
const logHello = async (message: string) => {
Expand Down

0 comments on commit dfe88c3

Please sign in to comment.