obs-portal/frontend/src/store.js
2021-02-21 11:22:22 +01:00

11 lines
269 B
JavaScript

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