Skip to content

Commit

Permalink
fix typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Nov 12, 2018
1 parent a1a48cb commit 80216f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 79.精读《React Hooks》.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ useEffect(() => {
});
```

`useEffect` 的代码既会在初始化时候执行,也会在后续每次 rerender 时执行,而返回值在解构时执行。这个更多带来的是便利,对比一下 React 版 G2 调用流程:
`useEffect` 的代码既会在初始化时候执行,也会在后续每次 rerender 时执行,而返回值在析构时执行。这个更多带来的是便利,对比一下 React 版 G2 调用流程:

```tsx
class Component extends React.PureComponent<Props, State> {
Expand Down

0 comments on commit 80216f6

Please sign in to comment.