It’s been a while since React v16.8 has been released. One of the most important features that was added to React with this release was the mighty hooks. With hooks you can turn the dumb state-less components to smart state-full components. Hooks are incredible but they for sure have changed the way we as developers need to think about the components. One thing I have seen a lot of developers struggle with is the useEffect hook. This one hook alone can somewhat replace the good old life cycle methods that were accessible with class-full components. This article of mine is an attempt at imitating some of the life-cycle methods with useEffect hook and hopefully give you an idea of how to use it accordingly

#useeffect #react-hook #react #react-native

Imitating react life-cycle methods with useEffect hook
1.55 GEEK