shallow comparison

Comparing two objects one property at a time with Object.is, without looking inside nested objects.

In more detail

React.memo uses it on props: the component re-renders only if some prop is not Object.is equal to its previous value. It is fast but cannot tell that a newly created object has the same contents as the old one.

Related terms

Taught in

References