正在加载视频...
视频加载失败
❌ Avoid listening for ref changes with useEffect() in React. ✅ Instead use a ref callback function.
101,654 次观看 • 3 年前 •via X (Twitter)
11 条评论

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

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

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

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

waqar ahmed3 年前
👍 I have wasted hours with ref current.

George Moller3 年前
We have all been there I think 😅

pavi24103 年前
This is great

Amit3 年前
Very useful tip for improving code and its performance!

George Moller3 年前
Glad you found vale in the tweet Amit!

Shalini Tewari3 年前
Amazing tip for developers!

George Moller3 年前
Glad you found value in the video Shalini!
