News for hackers. Stuff that matters.
Re:A Visual Guide to React Mental Models: UseState, UseEffec... by ss3000 on Saturday May 30, 2020 @01:27AM (#23358711)
I would say the biggest JavaScript inflicted pain when working with React is the lack of a notion of value equality in the default mutable collections.

Coming from a ClojureScript background, it pains me to have to deal with all the idioms in React that hack around this fundamental impedance mismatch by forcing users to carefully maintain reference equality for collections between renders for perf optimizations, and more recently for correctness in hooks like useEffect.

There are no comments on this comment yet.