Skip to content

Commit

Permalink
docs(cn): translate reference/react/components into Chinese (#1131)
Browse files Browse the repository at this point in the history
Co-authored-by: yanglinbj01 <yanglinbj01@yuanfudao.com>
Co-authored-by: Xavi Lee <awxiaoxian2020@163.com>
  • Loading branch information
3 people committed Apr 20, 2023
1 parent 44c9231 commit fcfbcc9
Showing 1 changed file with 8 additions and 8 deletions.
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 节点组合在一起。
* [`<Profiler>`](/reference/react/Profiler) 让你可以以编程方式衡量 React 树的渲染性能。
* [`<Suspense>`](/reference/react/Suspense) 让你可以在子组件加载时显示一个 fallback
* [`<StrictMode>`](/reference/react/StrictMode) 可以开启一些额外的,仅用于开发环境的检测,帮助你更早地发现 bug。

---

## 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 函数。

0 comments on commit fcfbcc9

Please sign in to comment.