4 ms·Class components have "shouldComponentUpdate()" that avoids this entirely.by Izkata 3y agoClass components have "shouldComponentUpdate()" that avoids this entirely.