71 likes
·
2.0K reads
9 comments
Wonderful article David. This helped me to really understand how the useEffect hook really works.
Thanks, Jarvis! I'm glad you found it helpful.
David Herbert Good Job
Thanks Omarsaade :)
Wonderfully explain David!
Funny! I encountered the same re-rendering issue while making a fetch call outside of a useEffect hook recently, I went ahead throwing the memo function in the component, but that didn't solve the re-rendering issue.
Then after some time, I noticed the fetch call was outside a useEffect hook 😂, what a bug I spent some time trying to figure out what was wrong.
Thanks for sharing!
Lol! We have all been there, myself included. Glad you found it helpful.
Thanks for explanation 👍
You're welcome :)
What about the new behavior of useEffect in React 18