Which useEffect runs first?
I often ask candidates about useEffect during interviews. While most can explain it theoretically, almost 99% give the wrong answer when I ask for a practical example.
Here's a deep dive on react-internals and how useEffect works.
https://frontendmasters.com/blog/react-internals-which-useeffect-runs-first/
