4 ms·
I'm not familiar with React, but why would that not be the case without this lib? {} !=== {} EDIT: Maybe I understand. You're saying a parent component might
by Touche 12y ago
I'm not familiar with React, but why would that not be the case without this lib? {} !=== {}
EDIT: Maybe I understand. You're saying a parent component might do something like: foo.bar = 'blah'; and then doing a simple equality check foo === foo is not enough, you have to check that the properties have not changed either. Is that correct?
- EdwardMSmith 12y agoExactly. If you have deeply nested data, multiple properties that may change, or arrays, then it becomes quite difficult (and/or slow) to test if there's a difference.