文章分类 -  React Hooks

使用 Structured-React-Hook 编写"真 ` 易于维护和扩展"的组件(一)
摘要:https://mp.weixin.qq.com/s?__biz=Mzg5NjAzMjI0NQ==&mid=2247490686&idx=1&sn=a54f1408feb67f64fe00ec8445be2a8e&chksm=c00610e4f77199f2ecc5c6360dfdb865b464d 阅读全文
posted @ 2021-02-04 09:48 bowen_tong
react-hooks & context 编写可复用react组件的一种实践
摘要:https://zhuanlan.zhihu.com/p/56232414 在新context API出来的时候,就已经有人提出可以用context进行状态管理。react-hooks的更新,使得这一想法的实现更为方便。以一个例子组件进行分析。 前置条件:阅读过react官方文档中,context这 阅读全文
posted @ 2020-10-10 10:43 bowen_tong 阅读(453) 评论(0) 推荐(0)