正在加载视频...
视频加载失败
Prop drilling? Sometimes all you need is a little restructuring.
10 条评论

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

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

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

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

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

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

@ddialar Thanks!

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

Why not to call useData() inside ComponentB instead?

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.
