obs-portal/frontend/src/store.js

11 lines
269 B
JavaScript
Raw Normal View History

2021-02-20 18:31:18 +00:00
import {compose, createStore} from 'redux'
import persistState from 'redux-localstorage'
import rootReducer from './reducers'
const enhancer = compose(persistState(['login', 'auth']))
const store = createStore(rootReducer, undefined, enhancer)
export default store