1. 首页
  2. 数据库
  3. 其它
  4. redux localstorage simple:将Redux状态保存到LocalStorage或从LocalStorage加载Redux状态 源码

redux localstorage simple:将Redux状态保存到LocalStorage或从LocalStorage加载Redux状态 源码

上传者: 2021-02-17 14:58:32上传 ZIP文件 94.22KB 热度 130次
Redux-LocalStorage-简单 将Redux状态保存到LocalStorage并从中加载。 安装 npm install --save redux-localstorage-simple 使用示例(ES6代码) import { applyMiddleware , createStore } from "redux" import reducer from "./reducer" // Import the necessary methods for saving and loading import { save , load } from "redux-localstorag
用户评论