Skip to content

Commit

Permalink
translate directives page from react server components
Browse files Browse the repository at this point in the history
  • Loading branch information
aroyan committed Aug 2, 2024
1 parent cb3625c commit cfdbe22
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/content/reference/rsc/directives.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
---
title: "Directives"
title: "Direktif"
canary: true
---

<Canary>

These directives are needed only if you're [using React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) or building a library compatible with them.
Direktif ini diperlukan hanya jika Anda [menggunakan React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) atau membangun pustaka yang kompatibel dengannya.

</Canary>

<Intro>

Directives provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).
Direktif memberikan instruksi kepada [bundler yang kompatibel dengan React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).

</Intro>

---

## Source code directives {/*source-code-directives*/}
## Kode sumber direktif {/*source-code-directives*/}

* [`'use client'`](/reference/rsc/use-client) lets you mark what code runs on the client.
* [`'use server'`](/reference/rsc/use-server) marks server-side functions that can be called from client-side code.
* [`'use client'`](/reference/rsc/use-client) memungkinkan Anda menandai kode yang berjalan pada klien.
* [`'use server'`](/reference/rsc/use-server) menandai fungsi sisi server yang dapat dipanggil dari kode sisi klien.

0 comments on commit cfdbe22

Please sign in to comment.