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.