Skip to content

Commit d1c72c2

Browse files
committed
translate: some words updated to singular
1 parent 4030b5d commit d1c72c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: "内置 React Hook"
1010

1111
---
1212

13-
## State Hook {/*state-hooks*/}
13+
## 状态 Hook {/*state-hooks*/}
1414

1515
*State* 让一个组件 ["记住" 像用户输入的信息](/learn/state-a-components-memory),比如,要给一个组件添加状态,使用这些 Hook 中的一个:
1616

@@ -79,7 +79,7 @@ Effect 是 React 范式的 "逃生舱门"。不要用 Effect 来协调你的应
7979
8080
---
8181
82-
## Performance Hooks {/*performance-hooks*/}
82+
## 性能 Hook {/*performance-hooks*/}
8383
8484
优化重新渲染性能的一个常见方法就是跳过不必要的工作。比如,你可以告诉 React 重用一个缓存的计算,或者如果数据在上一次渲染后没有变化,就跳过一次重新渲染。
8585

0 commit comments

Comments
 (0)