useEffect Hook
What is useEffect?
useEffect is a React hook which is used to handle side effects which occur in a component due to state change. It's basic syntax is useEffect(callback, [...dependencies]).
Dependecy array
By default useEffect runs every time th...
unv.hashnode.dev2 min read
Ghost
Self-employed software developer, artist, writer.
This is a great tutorial Uday! I'm still trying to wrap my head around useEffect cleanup , as I've heard it shouldn't be always done, just in cases where memory leaks are guaranteed to happen.