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

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

На главную

❌ Avoid Provider wrapping hell in React. ✅ Instead combine all your Providers using composition.

256,599 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля George Moller
George Moller2 лет назад

Gain a competitive edge by writing code that's not just functional, but also clean and performant ↓

Фото профиля George Moller
George Moller2 лет назад

I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 50+ video animations just like this one. Check them out ↓

Фото профиля GiFTED!
GiFTED!2 лет назад

You’re basically doing the same thing, only cleaner 🙂

Фото профиля Pavel Romanov
Pavel Romanov2 лет назад

What about typescript support for those props?

Фото профиля Matt
Matt2 лет назад

If someone presented this during an interview. I would hire them.

Фото профиля George Moller
George Moller2 лет назад

🤣

Фото профиля Brandon Austin
Brandon Austin2 лет назад

Looks pretty. In instances where I’m in provider wrapping hell, which is often, I find that the order of Providers is incredibly important. Not sure I’d be able to adopt

Фото профиля Alex Sherman
Alex Sherman2 лет назад

this is fkn wild 👏

Фото профиля Roiko
Roiko2 лет назад

Why is "provider hell" bad though? Pretty easy to follow the hierarchy, no?

Фото профиля George Moller
George Moller2 лет назад

I agree with you, the “avoid” part is an exaggeration 🤣. There is nothing wrong with having multiple providers at the root. You hardly ever revisit the root so it should be fine!

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