Forget about component lifecycles and start thinking in effects
Link – – sebastiandedeyne.com
In a new blogpost, my colleague Seb explains why you should and how you can use useEffect
.
React recently introduced a new way to deal with side effects: the
useEffect
hook. Translating lifecycle methods touseEffect
calls 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]
What are your thoughts on "Forget about component lifecycles and start thinking in effects"?