2020年1月18日
摘要: 1) what is Hooks? 之前也有函数式组件,但是没有状态,无法保存数据,所以一直用类式组件 引入Hooks函数,重写上述组件 1. setCount代替之前 this.setState的功能,修改state数据,其实也是reducer的功能,useState也是useReducer实现的 阅读全文
posted @ 2020-01-18 14:54 ddfa 阅读(183) 评论(0) 推荐(0) 编辑