Re:Using const/let instead of var can make JavaScript code r...
by SirHound on Wednesday October 21, 2020 @04:18AM
(#24845798)
> is that you can't hit that specific pitfall of forcing layout interspersed with DOM or style manipulation.
This isn't true though, useLayoutEffects that perform a read/write littered through your code is going to quite easily induce layout thrashing and there's no way of splitting this throughout a tree
This isn't true though, useLayoutEffects that perform a read/write littered through your code is going to quite easily induce layout thrashing and there's no way of splitting this throughout a tree