Loading video...

Video Failed to Load

Go Home

❌ 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 Moller's profile picture
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 Moller's profile picture
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 kaur's profile picture
Ritika kaur3 years ago

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

George Moller's profile picture
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 ahmed's profile picture
waqar ahmed3 years ago

👍 I have wasted hours with ref current.

George Moller's profile picture
George Moller3 years ago

We have all been there I think 😅

pavi2410's profile picture
pavi24103 years ago

This is great

Amit's profile picture
Amit3 years ago

Very useful tip for improving code and its performance!

George Moller's profile picture
George Moller3 years ago

Glad you found vale in the tweet Amit!

Shalini Tewari's profile picture
Shalini Tewari3 years ago

Amazing tip for developers!

George Moller's profile picture
George Moller3 years ago

Glad you found value in the video Shalini!

Related Videos