3 ms·
I wouldn't say useEffect is a footgun, it just requires realising that React is doing shallow comparisons.
by antihero 5y ago
I wouldn't say useEffect is a footgun, it just requires realising that React is doing shallow comparisons.
- nfRfqX5n 5y agovery good point
- jakelazaroff 5y agoTo me, a footgun isn't necessarily something that is hard to understand, but also something that's easy to misuse even if you understand it.