Skip to content

Commit f3f6a85

Browse files
docs(cn): translate reference/react-dom/hooks/index into Chinese (#1347)
Co-authored-by: Xavi Lee <[email protected]>
1 parent ab1c455 commit f3f6a85

File tree

1 file changed

+6
-6
lines changed
  • src/content/reference/react-dom/hooks

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "React DOM Hooks"
44

55
<Intro>
66

7-
The `react-dom` package contains Hooks that are only supported for web applications (which run in the browser DOM environment). These Hooks are not supported in non-browser environments like iOS, Android, or Windows applications. If you are looking for Hooks that are supported in web browsers *and other environments* see [the React Hooks page](/reference/react). This page lists all the Hooks in the `react-dom` package.
7+
`react-dom` 包含的 Hook 仅支持 web 应用程序,即在浏览器 DOM 环境中运行的应用程序。这些 Hook 不支持非浏览器环境,如 iOSAndroid Windows 应用程序。如果正在寻找在 web 浏览器以及其他环境中支持的 Hook,请参阅 [React Hooks 页面](/reference/react)。该页面列出了 `react-dom` 包中的所有 Hook。
88

99
</Intro>
1010

@@ -14,14 +14,14 @@ The `react-dom` package contains Hooks that are only supported for web applicati
1414

1515
<Canary>
1616

17-
Form Hooks are currently only available in React's canary and experimental channels. Learn more about [React's release channels here](/community/versioning-policy#all-release-channels).
17+
Form Hooks 目前仅在 React canary experimental 渠道中可用。在此处了解更多关于 [React 发布渠道](/community/versioning-policy#all-release-channels) 的信息。
1818

1919
</Canary>
2020

21-
*Forms* let you create interactive controls for submitting information. To manage forms in your components, use one of these Hooks:
21+
**Form** 允许创建用于提交信息的交互式控件。要在组件中管理表单,请使用以下其中一个 Hook:
2222

23-
* [`useFormStatus`](/reference/react-dom/hooks/useFormStatus) allows you to make updates to the UI based on the status of the a form.
24-
* `useFormState` allows you to manage state inside a form.
23+
* [`useFormStatus`](/reference/react-dom/hooks/useFormStatus) 允许根据表单的状态更新用户界面。
24+
* `useFormState` 允许管理表单内部的状态。
2525

2626
```js
2727
function Form({ action }) {
@@ -41,7 +41,7 @@ function Button() {
4141
const { pending } = useFormStatus();
4242
return (
4343
<button disabled={pending} type="submit">
44-
Submit
44+
提交
4545
</button>
4646
);
4747
}

0 commit comments

Comments
 (0)