1. 首页
  2. 数据库
  3. 其它
  4. hard reducer:类型友好的减速器助手 源码

hard reducer:类型友好的减速器助手 源码

上传者: 2021-05-03 07:08:45上传 ZIP文件 50.65KB 热度 12次
硬汉 键入友好的门面以获得更好的减速器。 npm install hard-reducer --save # or yarn add hard-reducer 概念 类型安全界面 避免多余的type字符串定义 保持reducer接口(State, Action) => State与redux.combineReducers()一起使用的(State, Action) => State 处理磁通量标准操作{ type: string, payload: Payload } 检查此代码以了解详细信息。 例子 此代码在flowtype和Typescript中均可运行 /* @flow */ // ^ flow magic comment to activate. It will be ignored in typescript. import { buildActi
下载地址
用户评论