Skip to content

Commit bd2b8e0

Browse files
authored
docs: fix some tranalse question and fill
1 parent 33d30f7 commit bd2b8e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/reference/react-compiler/directives/use-no-memo.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function MyComponent() {
2626
}
2727
```
2828

29-
当一个函数包含 "use no memo" 时,React 编译器会在优化过程中完全跳过它。在调试或处理与编译器不兼容的代码时,这是一个很有用的临时后门
29+
当一个函数包含 "use no memo" 时,React 编译器会在优化过程中完全跳过它。在调试或处理与编译器不兼容的代码时,这是一个很有用的脱围机制
3030

3131
#### 注意事项 {/*caveats*/}
3232

@@ -48,10 +48,10 @@ React 编译器会在构建时分析你的代码以应用优化。`"use no memo"
4848

4949
### 何时使用 `"use no memo"` {/*when-to-use*/}
5050

51-
`"use no memo"` s应谨慎并临时使用。常见场景包括:
51+
`"use no memo"` 应谨慎并临时使用。常见场景包括:
5252

5353
#### 调试编译器问题 {/*debugging-compiler*/}
54-
当你怀疑编译器引起问题时,可以暂时禁用优化来定位问题
54+
当你怀疑编译器引起问题时,可以暂时禁用优化来隔离问题
5555

5656
```js
5757
function ProblematicComponent({ data }) {
@@ -95,7 +95,7 @@ function MyComponent() {
9595
// 此文件中的所有函数都将被编译器跳过
9696
```
9797

98-
`"use no memo"` at the function level overrides the module level directive.
98+
`"use no memo"` 在函数级别覆盖模块级别指令。
9999

100100
---
101101

0 commit comments

Comments
 (0)