TLDR: The useEffect Hook executes whichever action (callback) as soon as the react components render. That's why it's used for things like data fetching, setting state etc ( these are side-effects, hence the name useEffect). Into the details... This...
nates.hashnode.dev4 min read
No responses yet.