Files
freeCodeCamp/guide/english/certifications/front-end-libraries/redux/combine-multiple-reducers/index.md
Niccolo Lampa 35e2800af7 Added hints and solutions to Redux exercises (#19576)
* added hints and solutions to exercise

* added hints and solutions to problem
2018-10-16 23:52:48 -07:00

695 B

title
title
Combine Multiple Reducers

Combine Multiple Reducers

The goal of this challenge is to combine two reducers into a single reducer which will be passed into the Redux.createStore() method.

Hint 1

Use the method Redux.combineReducers(). Pass an object as an argument.

Hint 2

The object should have two name:value pairs. The value corresponds to the reducer function

Solution

// define the root reducer here
const rootReducer =  Redux.combineReducers({count:counterReducer, auth:authReducer})