News for hackers. Stuff that matters.
Re:Introducing react.dev by Rapzid on Friday March 17, 2023 @05:47AM (#35195014)
On a thread a while back there was a Microsoft eng who was on a team that looked into trends with bugs.

IIRC They reported that hooks were a common source of problems.

Visually they look simple but they hide a lot complex and nuanced semantics. Once you start layering and composing it becomes hard to reason about when a value updates, when a re-renders will occur, and when a value even resolves(it may take many re-renders for a value you need to finally get set).

There are no comments on this comment yet.