545 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