Q35.webp
Enmu90

Q35.webp

  • Media owner Enmu90
  • Ngày thêm
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}

Thông tin

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

Share this media

Back
Bên trên Bottom