正在加载视频...

视频加载失败

Prop drilling? Sometimes all you need is a little restructuring.

908,174 次观看 • 3 年前 •via X (Twitter)

10 条评论

Andrés B. 的头像
Andrés B.3 年前

Alex, do you have a place other than Twitter with a collection of all these videos and explanations?

Alex Sidorenko 的头像
Alex Sidorenko3 年前

I use most animations for my blog However, I have been tweeting quite a lot recently, so there is a bit of a backlog 😅

Rob Pruzan 的头像
Rob Pruzan3 年前

Prop drilling? I just have my entire website in <App>

Vincas Stonys 的头像
Vincas Stonys3 年前

Excellent visualization of component composition applied to reduce prop-drilling. If that doesn't help, you may consider using context 👇

zomars 的头像
zomars3 年前

Yes!! I hope you don’t mind if I add this to our @calcom handbook 🙏

Liran Tal 的头像
Liran Tal3 年前

@ddialar Top tier educator right there. Well done, Alex!

Alex Sidorenko 的头像
Alex Sidorenko3 年前

@ddialar Thanks!

Michael Pumo 的头像
Michael Pumo3 年前

In Vue we call these slots. People don't make enough use of them!

🦉 П ö т р К р а с о т а 🦊 的头像
🦉 П ö т р К р а с о т а 🦊3 年前

Why not to call useData() inside ComponentB instead?

//pentagear.gg 的头像
//pentagear.gg3 年前

But now you're defining the structure of Component A outside Component A. This is a shift away from portability, and will require a maintainer to know where to look for it.

相关视频