Skip to content
Snippets Groups Projects
allReducers.ts 343 B
Newer Older
  • Learn to ignore specific revisions
  • // Combines all the reducers so that we only have to pass "one" reducer to the store in src/index.tsx
    
    import { combineReducers } from 'redux'
    
    import uiReducer from './uiReducer'
    import userReducer from './userReducer'
    
    
    const allReducers = combineReducers({
      // name: state
    
      user: userReducer,
      UI: uiReducer,
    
    })
    export default allReducers