– Pure Component is specifically the same as Component except that it handles Component Update method for us. When props or state changes, Pure Component will do a shallow comparison on both props and state. Component won’t compare current props and state to next out of the box. Thus, the component will re-render by default – whenever should Component Update is called.
– When analyzing previous props and state to next, a shallow comparison will check that primitives have the same value and that the references are the same between more complex javascript values like objects and arrays.
– It is enough to prefer Pure Component over Component whenever we never change our objects.