DEV Community

loading...

Component lifecycle with useEffect

Shekhar Sahu
・1 min read

Link:https://blog.joshsoftware.com/2020/03/26/component-lifecycle-with-useeffect/

When I heard about hooks in React JS, I read about it and tried to write new components with hooks as functional components. – it worked perfectly! But I never tried to re-write existing class based components code by using hooks. As a developer, changing the existing working code is a scary thing.

Discussion (0)