In a new blogpost, my colleague Seb explains why you should and how you can use
React recently introduced a new way to deal with side effects: the
useEffecthook. Translating lifecycle methods to
useEffectcalls can be confusing at first. It’s confusing because we shouldn’t be translating imperative lifecycle methods to declarative useEffect calls in the first place.
Read more [sebastiandedeyne.com]