store.js 495 B

12345678910
  1. import { applyMiddleware, combineReducers, createStore } from 'redux';
  2. import thunk from 'redux-thunk';
  3. import { authReducer } from './reducers/authReducer';
  4. import { chatReducer } from './reducers/chatReducer';
  5. import { modalReducer } from './reducers/modalReducer';
  6. import { promiseReducer } from './reducers/promiseReducer';
  7. export const store = createStore(combineReducers({
  8. promise: promiseReducer, auth: authReducer, chats: chatReducer, modal: modalReducer
  9. }), applyMiddleware(thunk))