3 ms·
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
by ss3000 6y ago
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.