You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)可能会为你调用它们。你的大部分组件不需要导入和使用它们。
8
10
9
11
</Intro>
10
12
11
13
---
12
14
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*/}
17
16
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 组件。
18
19
---
19
20
20
-
## Browser support {/*browser-support*/}
21
+
## 浏览器兼容性 {/*browser-support*/}
21
22
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