A Beginners Guide to Mastering the useEffect Hook in React
Hooks have come to play a major role in React component development, specifically in functional components as they have completely replaced the need for class-based components, which was initially the traditional go-to method for creating components ...
jpv-1649076767739.hashnode.dev10 min read
Favourite Jome
Software Engineer @bug0
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!