This article was originally published on my blog at https://www.leighhalliday.com/use-effect-hook
useEffect is meant to handle any sort of "side e...
For further actions, you may consider blocking this person and/or reporting abuse
Thank you, Leigh for the article~
I only knew about
Avoid setting state on unmounted components
way of not setting a state when a component unmounts.Surprising that Axios provides a way to cancel a request, which would be more efficient 😮
No prob, Sung! Thanks for reading. Fetch also provides a way to cancel a request, I made a video about it here if you're interested: youtu.be/JGASDKLZcdw
Thanks Leigh~
I see so many videos on your page, as well. 😮
youtube.com/user/leighhalliday