3 ms·
I think the flippant response to this is unwarranted. The content here is a 47 page ebook where I'm sure a lot of that will be code examples. Yeah, useEffect is
by bilalq 4y ago
I think the flippant response to this is unwarranted. The content here is a 47 page ebook where I'm sure a lot of that will be code examples. Yeah, useEffect is a little complicated, but trying to frame it as "so complicated it needs a whole book" isn't quite fair.
- azangru 4y agoIt is complicated, and React doesn't help, especially since it started calling useEffect with an empty dependencies array twice in strict mode in React 18. David Khourshid (of XState) has been going to conferences talking about how to use (or, preferably, not to use) the useEffect[0]. [0] - Here's one of his most recent talks: https://www.youtube.com/watch?v=eFGeStq8dZo https://www.youtube.com/watch?v=eFGeStq8dZo