useEffect isn’t perfect, but I don’t think it’s as bad as everyone’s been saying lately.
This is a reaction to the David K’s Reactathon talk, VOD for that here:
00:00 - Intro
02:40 - Class Components Were Bad
07:38 - ...Really Bad
10:12 - Dep arrays
15:10 - Effects are for synchronization
25:10 - A rant about mount behaviors
30:30 - When should you run your effects?
35:42 - useSyncExternalStore
42:35 - Fetch-on-render and some disappointed
47:40 - An example I hate
49:27 - A react-query counter example ...
#Theo
20220525
CFxA5GmDIbU