4 ms·
yeah, this is key. What you should be REALLY avoiding is unnecessary DOM updates, rerenders have a cost too, but marginal compared to DOM updates and even then
by DanielHB 4y ago
yeah, this is key. What you should be REALLY avoiding is unnecessary DOM updates, rerenders have a cost too, but marginal compared to DOM updates
and even then you mostly don't need to care either except in extreme situations (like useCallback is not really necessary most of the time0