Loading video...
Video Failed to Load
❌ Avoid listening for ref changes with useEffect() in React. ✅ Instead use a ref callback function.
101,654 views • 3 years ago •via X (Twitter)
11 Comments

George Moller3 years ago
Hey there 👋 Friendly reminder that I have more than 100 infographics and video animations just like this one. Check them out ↓

George Moller3 years ago
Hey there 👋 Friendly reminder that I have more than 100 infographics and video animations just like this one. Check them out ↓

Ritika kaur3 years ago
Great job, George! It's always nice to discover new possibilities. Thanks!

George Moller3 years ago
Thanks Ritika, yes this is a pain point most react developers have, so I wanted so share some content around it.

waqar ahmed3 years ago
👍 I have wasted hours with ref current.

George Moller3 years ago
We have all been there I think 😅

pavi24103 years ago
This is great

Amit3 years ago
Very useful tip for improving code and its performance!

George Moller3 years ago
Glad you found vale in the tweet Amit!

Shalini Tewari3 years ago
Amazing tip for developers!

George Moller3 years ago
Glad you found value in the video Shalini!
