1.0.1 • Published 8 years ago

redux-simple-localstorage1 v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Redux-LocalStorage

easy to implement

#Install

npm install redux-simple-localstorage1

#Usage

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'))
	)(createStore)

export function configureStore(initialState){

	return finalCreateStore(reducer,initial(initialState))
}

#API

saveStore('The name LocalStorage key ')
initial('Just pass the initialState of your application')

#Then

Your store will be in the LocalStorage