Everything you need to know about useEffect hook of React
A beginner's guide
Thread🧵👇
If you're familiar with class components then you might know that we have various lifecycle methods but in functional components, we don't have any lifecycle methods.
Instead we have a powerful hook called useEffect💪
By using useEffect, you tell React that your component needs to do something after render. React will remember the function you passed (we'll refer to it as our “effect”), and call it later after performing the DOM updates