Q26.webp
soft_wind

Q26.webp

Kizspy | Question: 26
(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}

Thông tin

Category
MMA301
Thêm bởi
soft_wind
Ngày thêm
Lượt xem
2,398
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom