DEV Community

loading...

Discussion on: Trouble with useEffect running every render? `useEffectRef` to the rescue!

Collapse
sunnysingh profile image
Sunny Singh

I love the post as an explanation of how useEffect and useRef work, but I agree with Alex. Seeing useCallback is less confusing.

Collapse
wialy profile image
Alex Ilchenko

Yes, the explanation is very nice and a lot of aspects are covered. Also, the warning about not to overuse this technique is cool. However I'm afraid it may encourage people to do so, and IMO there's no reason to do that at all.