tuture-dev / comments

The official comment place for tuture.co.
0 stars 0 forks source link

用动画和实战打开 React Hooks(三):useReducer 和 useContext | 图雀社区 #48

Open pftom opened 4 years ago

pftom commented 4 years ago

https://tuture.co/2020/05/05/689bb43/

随着应用状态越来越复杂,我们迫切需要状态与数据流管理的解决方案。熟悉 React 开发的同学一定听说过 Redux,而在这篇文章中,我们将通过 useReducer + useContext 的组合实现一个简易版的 Redux。首先,我们将带你重新认识“老朋友”useState,并借此引出这篇文章的主角:Reducer 函数与 useReducer 钩子,并通过实战一步步带你理清数据流和状态管理的

montilloo commented 3 years ago

完全看完,学到了很多,尤其是看到最后,直接上升到了更高的层次。respect&&🙏

pftom commented 3 years ago

@montilloo 👍🏻👍🏻👍🏻👍🏻希望有帮到你

hviwen commented 3 years ago

宝藏博主,迄今最好blog~ 👍