【文件属性】:
文件名称:redux-chillout:使redux变得容易
文件大小:69KB
文件格式:ZIP
更新时间:2021-05-06 16:45:58
react redux boilerplate redux-thunk easy
Redux Chillout
根据任何东西(变压器)生成动作和减速器。 设计用于删除香草redux样板代码。
安装方式
npm install redux - chillout redux @ 4.0 .4 react - redux @ 7.1 .3
创建您的休闲文件
import { generateChillout } from 'redux-chillout' ;
const [ LinkedActions , reducer , Types ] = generateChillout ( {
fetchValues : null ,
setValue : [ 'value' ] ,
addValue : state => ( { amount : state . amount + 1 } ) ,
removeValue : ( state , a
【文件预览】:
redux-chillout-master
----yarn.lock(167KB)
----src()
--------core.js(3KB)
--------transformers()
--------store.js(42B)
--------index.js(55B)
----.babelrc(143B)
----tsconfig.json(236B)
----README.md(2KB)
----.gitignore(27B)
----core.d.ts(290B)
----package.json(1KB)