Understanding React useEffect and dependency array
Understanding React useEffect and dependency array

By the time I got interested in React, the transition from class-based to functional components was well underway (thank goodness) and the smart kids were using hooks everywhere while others were scratching their heads. One thing that isn’t immediately obvious in this move toward the function-based approach is, what happened to component lifecycle methods? One... » read more