DEV Community

Discussion on: How To Immutably Update An Array In TypeScript

 
shelob9 profile image
Josh Pollock

Yes. That would be a good startegy.

What I like about writing state management decoupled from React is I can make that call later. If I have an updateItem, removeItem, and deleteItem, and they have tests, I can choose to use React.useState() or something Redux-like depending on my need.