Skip to content

Commit

Permalink
docs(cn): translate reference/react/directives into Chinese (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucohny authored Jul 5, 2023
1 parent d5ee9ab commit 4695727
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/content/reference/react/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ title: "Directives"

<Intro>

React uses two directives to provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks).
React 使用两个命令(directive)向 [React 服务器组件兼容的捆绑器(bundler)](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) 提供指令。

</Intro>

---

## Source code directives {/*source-code-directives*/}
## 源码命令 {/*source-code-directives*/}

* [`'use client'`](/reference/react/use-client) marks source files whose components execute on the client.
* [`'use server'`](/reference/react/use-server) marks server-side functions that can be called from client-side code.
* [`'use client'`](/reference/react/use-client) 标记其组件在客户端上执行的源文件。
* [`'use server'`](/reference/react/use-server) 标记可以从客户端代码调用的服务器函数。

0 comments on commit 4695727

Please sign in to comment.