Загрузка видео...

Не удалось загрузить видео

На главную

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

908,269 просмотров • 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.

Похожие видео