Skip to content

Commit

Permalink
Update hooks-effect.md
Browse files Browse the repository at this point in the history
  • Loading branch information
QC-L committed Mar 26, 2019
1 parent de09e1a commit effe0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/hooks-effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function Example() {
>提示
>
> 与 `componentDidMount``componentDidUpdate` 不同,使用 `useEffect` 调度的 effect 不会阻塞浏览器更新屏幕,这让你的应用看起来响应更快。大多数情况下,effect 不需要同步地执行。在个别情况下(例如测量布局),有单独的 [`useLayoutEffect`](/docs/hooks-reference.html#uselayouteffect) Hook 供你使用,其 API 与`useEffect`相同。
> 与 `componentDidMount``componentDidUpdate` 不同,使用 `useEffect` 调度的 effect 不会阻塞浏览器更新屏幕,这让你的应用看起来响应更快。大多数情况下,effect 不需要同步地执行。在个别情况下(例如测量布局),有单独的 [`useLayoutEffect`](/docs/hooks-reference.html#uselayouteffect) Hook 供你使用,其 API 与 `useEffect` 相同。
## 需要清除的 effect
Expand Down

0 comments on commit effe0de

Please sign in to comment.