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...
ReactJs developer
Markdown supported · ⌘↵ to post
Ghost
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.