11 lines
269 B
JavaScript
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
|