Question: 35
(Choose 1 answer)
Given the following Redux reducer and action in a React Native application, what will be the value of the state
after dispatching the increment action?
// Reducer
const counterReducer = (state = { count: 0}, action) => {
switch (action.type) {
case 'INCREMENT':
return state, count: state.count + 1};
default:
return state;
// Action
const increment = () => ({ type: 'INCREMENT' });
A. {count: 0}
B. {count: 1}
C. {count: 2}
D. {count: -1}