Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/content/reference/rsc/directives.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
title: Directives
title: Diretivas
---

<RSC>

Directives are for use in [React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).
Diretivas são para uso em [Componentes do Servidor React](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).

</RSC>

<Intro>

Directives provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).
Diretivas fornecem instruções para [bundlers compatíveis com Componentes do Servidor React](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).

</Intro>

---

## Source code directives {/*source-code-directives*/}
## Diretivas de código fonte {/*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) permite que você marque qual código é executado no cliente.
* [`'use server'`](/reference/rsc/use-server) marca funções do lado do servidor que podem ser chamadas do código do lado do cliente.