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
So let's start by understanding the syntax firstπ