Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Nov 12, 2018
1 parent 97e83ef commit 4a33e79
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 @@ -43,7 +43,7 @@ function App() {
}
```

可以看到,React Hooks 灵活性更高,且不需要引用额外的库
可以看到,React Hooks 就像一个内置的打平 renderProps 库,我们可以随时创建一个值,与修改这个值的方法。看上去像 function 形式的 setState,其实这等价于依赖注入,与使用 setState 相比,**这个组件是没有状态的**

## 2 概述

Expand Down

0 comments on commit 4a33e79

Please sign in to comment.