Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 68f9c30

Browse files
authoredMar 25, 2019
Update hooks-effect.md
1 parent b06533f commit 68f9c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎content/docs/hooks-effect.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Effect Hook 使用同一个 API 来满足这两种情况。
268268
269269
在本页中我们将继续深入了解 `useEffect` 的某些方面,有经验的 React 使用者可能会对此感兴趣。你不一定要在现在了解他们,你可以随时返回此页面以了解有关 Effect Hook 的更多详细信息。
270270
271-
### 提示: 使用多个 Effect 来隔离不同的问题 {#tip-use-multiple-effects-to-separate-concerns}
271+
### 提示: 使用多个 Effect 分离关注点 {#tip-use-multiple-effects-to-separate-concerns}
272272
273273
我们使用 Hook 其中一个[目的](/docs/hooks-intro.html#complex-components-become-hard-to-understand)就是要解决 class 中生命周期函数经常包含了不相关的逻辑,但又把相关的逻辑分隔到几个不同的方法中的问题。下面这是一个组合了前面示例中的计数器和朋友状态指示器逻辑的组件:
274274

0 commit comments

Comments
 (0)
Please sign in to comment.