Difference between useState and useReducer in react

Forums ReactDifference between useState and useReducer in react
Staff asked 2 years ago

Answers (1)

Add Answer
prinkesha lathidadiya Marked As Accepted
Staff answered 2 years ago

UseReducer is a supplementary Hook for handling more sophisticated state logic, while useState is a fundamental Hook for managing simple state transformation.

Subscribe

Select Categories