摘要: 回顾一下Redux的数据流转,用户点击按钮发送了一个action, reducer 就根据action 和以前的state 计算出了新的state, store.subscribe 方法的回调函数中 store.getState() 获取新的state, 把state 注入到页面元素中,实现页面状态 阅读全文
posted @ 2019-08-11 15:36 SamWeb 阅读(1587) 评论(4) 推荐(0) 编辑