React to component changes.