redux optimist:乐观地应用可以稍后提交或还原的操作 源码
Redux乐观主义者 乐观地应用可以稍后提交或还原的操作。 安装 npm install redux-optimist 用法 第1步:在redux-optimist中包装顶级减速器 reducers/todos.js export default function todos ( state = [ ] , action ) { switch ( action . type ) { case 'ADD_TODO' : return state . concat ( [ action . text ] ) ; default : return state ; }
下载地址
用户评论