diff --git a/src/content/reference/react/components.md b/src/content/reference/react/components.md index 7ce3fab631..f5e09d0721 100644 --- a/src/content/reference/react/components.md +++ b/src/content/reference/react/components.md @@ -4,21 +4,21 @@ title: "Built-in React Components" -React exposes a few built-in components that you can use in your JSX. +React 提供了一些内置的组件,你可以在 JSX 中使用它们。 --- -## Built-in components {/*built-in-components*/} +## 内置组件 {/*built-in-components*/} -* [``](/reference/react/Fragment), alternatively written as `<>...`, lets you group multiple JSX nodes together. -* [``](/reference/react/Profiler) lets you measure rendering performance of a React tree programmatically. -* [``](/reference/react/Suspense) lets you display a fallback while the child components are loading. -* [``](/reference/react/StrictMode) enables extra development-only checks that help you find bugs early. +* [``](/reference/react/Fragment),也可以写作 `<>...`,让你可以将多个 JSX 节点组合在一起。 +* [``](/reference/react/Profiler) 让你可以以编程方式衡量 React 树的渲染性能。 +* [``](/reference/react/Suspense) 让你可以在子组件加载时显示一个 fallback。 +* [``](/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 函数。