Q. What is the purpose of the useReducer hook?
β
Correct Answer: (A)
To manage complex state logic using a reducer function
Explanation: useReducer is similar to Redux reducers but for local state.