Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // redux utilities
- // create a store, apply middlewares to it
- import { createStore, applyMiddleware, combineReducers } from 'redux';
- // middleware to parse actions' promises
- import { promiseMiddleware, localStorageMiddleware } from './middleware';
- import auth from './reducers/auth';
- import common from './reducers/common';
- import home from './reducers/home';
- import settings from './reducers/settings';
- // create root reducer
- const reducer = combineReducers({
- auth,
- common,
- home,
- settings
- });
- // ...
Advertisement
Add Comment
Please, Sign In to add comment