useEffect Hook with Functional Component
What is this article about?
With introduction Functional Component react became cleaner and faster than before when we were using Class Components. So to use Function components more in react, React developer came up with hooks.
As for this post we are going to get acquainted with useEffect hook which will be replacing class lifecycle in upcoming time, but as of now it hasn’t replaced it completely. In the post we are going to learn and see how to use it effectively and get to know it perks and benefits.