正在加载视频...

视频加载失败

❌ Avoid listening for ref changes with useEffect() in React. ✅ Instead use a ref callback function.

101,654 次观看 • 3 年前 •via X (Twitter)

11 条评论

George Moller 的头像
George Moller3 年前

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

George Moller 的头像
George Moller3 年前

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

Ritika kaur 的头像
Ritika kaur3 年前

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

George Moller 的头像
George Moller3 年前

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

waqar ahmed 的头像
waqar ahmed3 年前

👍 I have wasted hours with ref current.

George Moller 的头像
George Moller3 年前

We have all been there I think 😅

pavi2410 的头像
pavi24103 年前

This is great

Amit 的头像
Amit3 年前

Very useful tip for improving code and its performance!

George Moller 的头像
George Moller3 年前

Glad you found vale in the tweet Amit!

Shalini Tewari 的头像
Shalini Tewari3 年前

Amazing tip for developers!

George Moller 的头像
George Moller3 年前

Glad you found value in the video Shalini!

相关视频