Answers for "combine reducer"

0

combine reducer

import { combineReducers } from 'redux'

import todosReducer from './features/todos/todosReducers'
import jobsReducer from './features/jobs/jobsReducers'
import filtersReducer from './features/filters/filtersSlice'

const rootReducer = combineReducers({
  // Define a top-level state field named `todos`, handled by `todosReducer` same like other
  todos: todosReducer,
  jobs: jobsReducer,
  filters: filtersReducer
})

export default rootReducer
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language