【文件属性】:
文件名称:simple-redux-crud:您的Redux应用程序的简单CRUD
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-03 13:06:50
JavaScript
简单的Redux CRUD
您的Redux应用程序的简单CRUD
动机
我发现了一些CRUD的CRUD用于redux的实现,但出于我的目的,它们有些复杂。 所以我创造了这个简单的东西,希望您会喜欢。
安装
$ npm install simple - redux - crud
而且您必须在您的应用程序中启用thunk中间件!!
用法
//assuming that you have 'todos' key in your state (in the root, not somewhere nested).
//You may use this library only on keys that contain an array!
let state = {
todos : [ {
text : 'My todo' ,
completed : false ,
id
【文件预览】:
simple-redux-crud-master
----.gitignore(20B)
----package.json(692B)
----src()
--------index.js(175B)
--------reducers()
--------actions()
----README.md(4KB)
----lib()
--------index.js(494B)
--------reducers()
--------actions()
----.npmignore(4B)
----test()
--------reducers()
--------actions()