What is the purpose of useEffect hook?
What does useEffect do? By using this Hook, you tell React that your component needs to do something after render. React will remember the function you passed, and call it later after performing the DOM updates.