File size: 346 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import { createStore, applyMiddleware } from 'redux';
import rootReducer from './root-reducer';
import thunk from 'redux-thunk';
import { persistStore } from 'redux-persist';
const middlewares = [thunk]
export const store = createStore(rootReducer, applyMiddleware(...middlewares));
export const persistor = persistStore(store);
|