News for hackers. Stuff that matters.
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

Re:Using const/let instead of var can make JavaScript code r... by om2 on Wednesday October 21, 2020 @06:00AM (#24846264)
OK, this is the part where I have to admit I know a lot less about React than about browser engines. :-)