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๐