DEV Community

Discussion on: Using the useReducer Hook in React with TypeScript

Collapse
 
prashi_cn profile image
Solitary

Between useReducer and useState , which is better for nested objects or arrays?

Collapse
 
marlonx19 profile image
Marlon Englemam

UseReducer is better for that case