摘要: 什么是reducer reducer 就是⼀个纯函数,接收旧的 state 和 action,返回新的 state。 (previousState, action) => newState 之所以将这样的函数称之为 reducer,是因为这种函数与被传⼊ Array.prototype.reduce 阅读全文
posted @ 2020-06-28 18:56 又回到了起点 阅读(140) 评论(0) 推荐(0) 编辑