React 18 is broken in a weird way

React 18 includes concurrent rendering which might render a `useEffect` multiple times. If you rely on useEffect for onComponentDidMount, you might have to change that soon. Let's see how React 18 breaks this behavior in this release and what it means for you.

⚛️ Do you want to become a full-stack web developer? Check out codedamn's full-stack learning path:

⚛️ Get started with web3 and decentralized technologies today:

0:00 Teaser
0:26 useEffect() before React 18
1:15 useEffect() after React 18
2:45 New useEvent() hook
4:48 Why this is happening?
6:30 Conclusion
7:52 Outro

Web design
Be the first to comment