Q25.webp
L

Q25.webp

Kizspy | Question: 25
(Choose 1 answer)
What are the differences between useState and useReducer Hooks in React?
A. useState is used for managing simple state, while useReducer is used for complex state and state
transitions.
B. useState is a built-in Hook, while useReducer is a custom Hook.
C. useState is used for class components, while useReducer is used for functional components.
D. useState is for local component state, while useReducer is for global application state.

Thông tin

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

Share this media

Back
Bên trên Bottom