Why React and Redux need immutable data

added by JavaScript Kicks
10/1/2019 6:37:39 AM

412 Views

Explaining with drawings and examples, so we can finally understand it. React uses shallowCompare when deciding if it should re-render a component. To understand shallowCompare, we need, first, to know how JavaScript handles objects references.


0 comments