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
1