Skip to content

Commit 102a146

Browse files
jiechen257chenjieawxiaoxian2020
authored
docs(cn): optimize the semantic representation (reactjs#988)
Co-authored-by: chenjie <[email protected]> Co-authored-by: Xavi Lee <[email protected]>
1 parent 9455f8f commit 102a146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function ExampleWithManyStates() {
6060

6161
#### 那么,什么是 Hook? {#but-what-is-a-hook}
6262

63-
Hook 是一些可以让你在函数组件里“钩入” React state 及生命周期等特性的函数。Hook 不能在 class 组件中使用 —— 这使得你不使用 class 也能使用 React。(我们[不推荐](/docs/hooks-intro.html#gradual-adoption-strategy)把你已有的组件全部重写,但是你可以在新组件里开始使用 Hook。)
63+
Hook 是一些可以让你在函数组件里“钩入” React state 及生命周期等特性的函数。Hook 不依赖在 class 组件中使用 —— 这使得你不使用 class 也能使用 React。(我们[不推荐](/docs/hooks-intro.html#gradual-adoption-strategy)把你已有的组件全部重写,但是你可以在新组件里开始使用 Hook。)
6464

6565
React 内置了一些像 `useState` 这样的 Hook。你也可以创建你自己的 Hook 来复用不同组件之间的状态逻辑。我们会先介绍这些内置的 Hook。
6666

0 commit comments

Comments
 (0)