Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(cn): translate reference/react/components into Chinese #1131

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/content/reference/react/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ title: "Built-in React Components"

<Intro>

React exposes a few built-in components that you can use in your JSX.
React 提供了一些内置的组件,你可以在 JSX 中使用它们。

</Intro>

---

## Built-in components {/*built-in-components*/}
## 内置组件 {/*built-in-components*/}

* [`<Fragment>`](/reference/react/Fragment), alternatively written as `<>...</>`, lets you group multiple JSX nodes together.
* [`<Profiler>`](/reference/react/Profiler) lets you measure rendering performance of a React tree programmatically.
* [`<Suspense>`](/reference/react/Suspense) lets you display a fallback while the child components are loading.
* [`<StrictMode>`](/reference/react/StrictMode) enables extra development-only checks that help you find bugs early.
* [`<Fragment>`](/reference/react/Fragment),也可以写作 `<>...</>` ,让你可以将多个 JSX 节点组合在一起。
awxiaoxian2020 marked this conversation as resolved.
Show resolved Hide resolved
* [`<Profiler>`](/reference/react/Profiler) 让你可以以编程方式衡量 React 树的渲染性能。
* [`<Suspense>`](/reference/react/Suspense) 让你可以在子组件加载时显示一个降级(fallback)。
awxiaoxian2020 marked this conversation as resolved.
Show resolved Hide resolved
* [`<StrictMode>`](/reference/react/StrictMode) 可以开启一些额外的仅适用于开发环境的检测,帮助你更早地发现 bug。
awxiaoxian2020 marked this conversation as resolved.
Show resolved Hide resolved

---

## Your own components {/*your-own-components*/}
## 自定义组件 {/*your-own-components*/}

You can also [define your own components](/learn/your-first-component) as JavaScript functions.
你也可以将 [自己定义的组件](/learn/your-first-component) 定义为 JavaScript 函数。