InterviewBuddy
All interview questions

What is the difference between useState and useReducer?

Intermediate

Answer

useState is convenient for simple updates. useReducer centralizes transitions when state logic has multiple actions or related fields.