Skip to content

Commit de89f8b

Browse files
authored
docs(cn): translate reference/react-dom/static/index into Chinese (#1646)
2 parents ba65175 + 71e5a3c commit de89f8b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • src/content/reference/react-dom/static

src/content/reference/react-dom/static/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ title: Static React DOM APIs
44

55
<Intro>
66

7-
The `react-dom/static` APIs let you generate static HTML for React components. They have limited functionality compared to the streaming APIs. A [framework](/learn/start-a-new-react-project#production-grade-react-frameworks) may call them for you. Most of your components don't need to import or use them.
7+
`react-dom/static` API 允许你为 React 组件生成静态 HTML。与流式 API 相比,它们的功能有限。[框架](/learn/start-a-new-react-project#production-grade-react-frameworks) 可能会调用它们。你的大多数组件不需要导入或使用它们。
88

99
</Intro>
1010

1111
---
1212

13-
## Static APIs for Web Streams {/*static-apis-for-web-streams*/}
13+
## Web 流的静态 API {/*static-apis-for-web-streams*/}
1414

15-
These methods are only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), which includes browsers, Deno, and some modern edge runtimes:
15+
这些方法仅在支持 [Web ](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) 的环境中可用,包括浏览器、Deno 和一些现代的边缘运行时环境:
1616

17-
* [`prerender`](/reference/react-dom/static/prerender) renders a React tree to static HTML with a [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)
17+
* [`prerender`](/reference/react-dom/static/prerender) 使用 [可读的 Web ](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) 将 React 树渲染为静态 HTML。
1818

1919

2020
---
2121

22-
## Static APIs for Node.js Streams {/*static-apis-for-nodejs-streams*/}
22+
## Node.js 流的静态 API {/*static-apis-for-nodejs-streams*/}
2323

24-
These methods are only available in the environments with [Node.js Streams](https://nodejs.org/api/stream.html):
24+
这些方法仅在支持 [Node.js ](https://nodejs.org/api/stream.html) 的环境中可用:
2525

26-
* [`prerenderToNodeStream`](/reference/react-dom/static/prerenderToNodeStream) renders a React tree to static HTML with a [Node.js Stream.](https://nodejs.org/api/stream.html)
26+
* [`prerenderToNodeStream`](/reference/react-dom/static/prerenderToNodeStream) 使用 [Node.js ](https://nodejs.org/api/stream.html) 将 React 树渲染为静态 HTML。
2727

2828

0 commit comments

Comments
 (0)