Redux-LocalStorage:在浏览器本地存储中存储状态

时间:2024-05-30 04:11:23
【文件属性】:

文件名称:Redux-LocalStorage:在浏览器本地存储中存储状态

文件大小:2KB

文件格式:ZIP

更新时间:2024-05-30 04:11:23

react redux JavaScript

Redux本地存储 功能易于实现。 安装 npm install redux-simple-localstorage1 用法 import { applyMiddleware , compose , createStore } from "redux" import reducer from './reducers/index.js' import logger from 'redux-logger' import thunk from 'redux-thunk' import { saveStore , initial } from 'redux-simple-localstorage1' let finalCreateStore = compose ( applyMiddleware ( thunk , logger ( ) , saveStore ( 'reduxStore' )


【文件预览】:
Redux-LocalStorage-master
----src()
--------simplePersist.js(527B)
----LICENSE.md(0B)
----README.md(807B)
----.gitignore(13B)
----package.json(604B)

网友评论