DEV Community

Discussion on: How to update object or array state in React

Collapse
 
matjones profile image
Mat Jones

Or even better, use immutable data structures, for example Record and List from Immutable.js, or Drafts from Immer.js.

Collapse
 
raphaelchaula profile image
Raphael Chaula

Yes