Skip to content

Commit b2c7f7e

Browse files
authored
docs(cn): translate /learn/react-compiler/index.md into Chinese
[translate page link](https://zh-hans.react.dev/learn/react-compiler) 我不确定Shipping该翻译成什么?词典介绍为航运,运输。 breaking patterns 可以直接翻译成破坏模式吗?
1 parent e174ea7 commit b2c7f7e

File tree

1 file changed

+16
-16
lines changed
  • src/content/learn/react-compiler

1 file changed

+16
-16
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
---
2-
title: React Compiler
2+
title: React 编译器
33
---
44

5-
## Introduction {/*introduction*/}
5+
## 介绍 {/*introduction*/}
66

7-
Learn [what React Compiler does](/learn/react-compiler/introduction) and how it automatically optimizes your React application by handling memoization for you, eliminating the need for manual `useMemo`, `useCallback`, and `React.memo`.
7+
学习 [React 编译器的作用](/learn/react-compiler/introduction) 以及它如何通过自动处理记忆化(memoization)来优化你的 React 应用,从而无需再手动使用 `useMemo``useCallback`,和 `React.memo`
88

9-
## Installation {/*installation*/}
9+
## 安装 {/*installation*/}
1010

11-
Get started with [installing React Compiler](/learn/react-compiler/installation) and learn how to configure it with your build tools.
11+
开始使用与 [安装 React 编译器](/learn/react-compiler/installation) 并学习如何配置你的构建工具以集成它。
1212

1313

14-
## Incremental Adoption {/*incremental-adoption*/}
14+
## 渐进式采用 {/*incremental-adoption*/}
1515

16-
Learn [strategies for gradually adopting React Compiler](/learn/react-compiler/incremental-adoption) in your existing codebase if you're not ready to enable it everywhere yet.
16+
如果你尚未准备好在整个项目中启用,学习 [渐进式采用 React 编译器的策略](/learn/react-compiler/incremental-adoption),在现有代码库中逐步引入它。
1717

18-
## Debugging and Troubleshooting {/*debugging-and-troubleshooting*/}
18+
## 调试与故障排除 {/*debugging-and-troubleshooting*/}
1919

20-
When things don't work as expected, use our [debugging guide](/learn/react-compiler/debugging) to understand the difference between compiler errors and runtime issues, identify common breaking patterns, and follow a systematic debugging workflow.
20+
当程序未按预期工作时,使用我们的 [调试指南](/learn/react-compiler/debugging) 以理解编译器错误和运行时问题的区别,识别常见的破坏性模式,并遵循系统化的调试流程。
2121

22-
## Configuration and Reference {/*configuration-and-reference*/}
22+
## 配置与参考 {/*configuration-and-reference*/}
2323

24-
For detailed configuration options and API reference:
24+
有关详细的配置选项和 API 参考:
2525

26-
- [Configuration Options](/reference/react-compiler/configuration) - All compiler configuration options including React version compatibility
27-
- [Directives](/reference/react-compiler/directives) - Function-level compilation control
28-
- [Compiling Libraries](/reference/react-compiler/compiling-libraries) - Shipping pre-compiled libraries
26+
- [配置选项](/reference/react-compiler/configuration) - 包含所有编译器配置选项,包括 React 版本兼容性
27+
- [指令](/reference/react-compiler/directives) - 用于函数级别的编译控制
28+
- [编译库](/reference/react-compiler/compiling-libraries) - 提供预编译的库
2929

30-
## Additional resources {/*additional-resources*/}
30+
## 额外的资源 {/*additional-resources*/}
3131

32-
In addition to these docs, we recommend checking the [React Compiler Working Group](https://github.com/reactwg/react-compiler) for additional information and discussion about the compiler.
32+
除了本文档之外,我们建议你关注 [React 编译器工作组](https://github.com/reactwg/react-compiler),以获取有关编译器的更多信息和讨论。
3333

0 commit comments

Comments
 (0)