|
1 | 1 | ---
|
2 |
| -title: React Reference Overview |
| 2 | +title: React 参考总览 |
3 | 3 | ---
|
4 | 4 |
|
5 | 5 | <Intro>
|
6 | 6 |
|
7 |
| -This section provides detailed reference documentation for working with React. For an introduction to React, please visit the [Learn](/learn) section. |
| 7 | +本部分提供了使用 React 的详细参考文档。如果需要了解 React,请访问 [学习](/learn) 部分。 |
8 | 8 |
|
9 | 9 | </Intro>
|
10 | 10 |
|
11 |
| -Our The React reference documentation is broken down into functional subsections: |
| 11 | +React 参考文档分为以下功能子部分: |
12 | 12 |
|
13 | 13 | ## React {/*react*/}
|
14 | 14 |
|
15 |
| -Programmatic React features: |
| 15 | +编程式 React 功能: |
16 | 16 |
|
17 |
| -* [Hooks](/reference/react/hooks) - Use different React features from your components. |
18 |
| -* [Components](/reference/react/components) - Documents built-in components that you can use in your JSX. |
19 |
| -* [APIs](/reference/react/apis) - APIs that are useful for defining components. |
20 |
| -* [Directives](/reference/react/directives) - Provide instructions to bundlers compatible with React Server Components. |
| 17 | +* [Hook](/reference/react/hooks) —— 在组件中使用不同的 React 特性。 |
| 18 | +* [组件](/reference/react/components) —— 记录了可以在 JSX 中使用的内置组件。 |
| 19 | +* [API](/reference/react/apis) —— 用于定义组件的有用 API。 |
| 20 | +* [指令](/reference/react/directives) —— 为与 React 服务器组件兼容的捆绑器提供指示。 |
21 | 21 |
|
22 | 22 | ## React DOM {/*react-dom*/}
|
23 | 23 |
|
24 |
| -React-dom contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: |
| 24 | +React-dom 仅支持在 web 应用程序中使用(在浏览器 DOM 环境中运行)。本节分为以下部分: |
25 | 25 |
|
26 |
| -* [Hooks](/reference/react-dom/hooks) - Hooks for web applications which run in the browser DOM environment. |
27 |
| -* [Components](/reference/react-dom/components) - React supports all of the browser built-in HTML and SVG components. |
28 |
| -* [APIs](/reference/react-dom) - The `react-dom` package contains methods supported only in web applications. |
29 |
| -* [Client APIs](/reference/react-dom/client) - The `react-dom/client` APIs let you render React components on the client (in the browser). |
30 |
| -* [Server APIs](/reference/react-dom/server) - The `react-dom/server` APIs let you render React components to HTML on the server. |
| 26 | +* [Hook](/reference/react-dom/hooks) - 适用于在浏览器 DOM 环境中运行的 web 应用程序的 Hook。 |
| 27 | +* [组件](/reference/react-dom/components) - React 支持所有内置的 HTML 和 SVG 组件。 |
| 28 | +* [API](/reference/react-dom) - `react-dom` 包含仅在 Web 应用程序中支持的方法。 |
| 29 | +* [客户端 API](/reference/react-dom/client) - `react-dom/client` API 允许在客户端(浏览器中)呈现 React 组件。 |
| 30 | +* [服务器 API](/reference/react-dom/server) - `react-dom/server` API 允许在服务器端将 React 组件渲染为 HTML。 |
31 | 31 |
|
32 |
| -## Legacy APIs {/*legacy-apis*/} |
| 32 | +## 旧版 API {/*legacy-apis*/} |
33 | 33 |
|
34 |
| -* [Legacy APIs](/reference/react/legacy) - Exported from the `react` package, but not recommended for use in newly written code. |
| 34 | +* [旧版 API](/reference/react/legacy) - 从 react 包中导出,但不建议在新编写的代码中使用。 |
0 commit comments