Skip to content

Commit ac4509a

Browse files
neo-of-matrixawxiaoxian2020Yucohny
authored
docs(cn): translate reference/react-dom/client/index into Chinese (#1171)
Co-authored-by: Xavi Lee <[email protected]> Co-authored-by: Yucohny <[email protected]>
1 parent 88bd35e commit ac4509a

File tree

1 file changed

+9
-8
lines changed
  • src/content/reference/react-dom/client

1 file changed

+9
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
---
2-
title: Client React DOM APIs
2+
title: 客户端 React DOM APIs
3+
translators:
4+
- neo-of-matrix
35
---
46

57
<Intro>
68

7-
The `react-dom/client` APIs let you render React components on the client (in the browser). These APIs are typically used at the top level of your app to initialize your React tree. 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.
9+
`react-dom/client` API 让你可以在客户端(浏览器)渲染 React 组件。这些 API 通常在你的应用的顶端初始化 React 树。一个 [框架](/learn/start-a-new-react-project#production-grade-react-frameworks) 可能会为你调用它们。你的大部分组件不需要导入和使用它们。
810

911
</Intro>
1012

1113
---
1214

13-
## Client APIs {/*client-apis*/}
14-
15-
* [`createRoot`](/reference/react-dom/client/createRoot) lets you create a root to display React components inside a browser DOM node.
16-
* [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) lets you display React components inside a browser DOM node whose HTML content was previously generated by [`react-dom/server`.](/reference/react-dom/server)
15+
## 客户端 API {/*client-apis*/}
1716

17+
* [`createRoot`](/reference/react-dom/client/createRoot) 让你可以在浏览器的 DOM 节点里面创建一个根节点来显示 React 组件。
18+
* [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) 让你可以在 HTML 内容提前由 [`react-dom/server`](/reference/react-dom/server) 生成的浏览器 DOM 节点里面显示 React 组件。
1819
---
1920

20-
## Browser support {/*browser-support*/}
21+
## 浏览器兼容性 {/*browser-support*/}
2122

22-
React supports all popular browsers, including Internet Explorer 9 and above. Some polyfills are required for older browsers such as IE 9 and IE 10.
23+
React 支持所有流行的浏览器,包括 Internet Explorer 9 以及以上版本的浏览器。更旧的浏览器比如 IE9 和 IE10 需要使用 polyfill。

0 commit comments

Comments
 (0)