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

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

На главную

🤯 How am I just finding out about display: contents; Suuuuper handy for CSS Flexbox + Grid where the children aren't direct descendants.

356,767 просмотров • 1 год назад •via X (Twitter)

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

Фото профиля Theo - t3.gg
Theo - t3.gg1 год назад

Wait - I suck at CSS and I’ve been using this for like 7 years lol

Фото профиля Wes Bos
Wes Bos1 год назад

lol 🍪

Фото профиля 🦋@ericclemmons.com
🦋@ericclemmons.com1 год назад

Wes, I gotta compliment you on your delivery and style here. All signal, no noise. Real-world problems and solutions.

Фото профиля Wes Bos
Wes Bos1 год назад

thanks, Eric! I appreciate the feedbac 👍🏻

Фото профиля Travis Arnold
Travis Arnold1 год назад

It also works really nice for Client Components that need access to Server Components

Фото профиля Wes Bos
Wes Bos1 год назад

Damn that’s a great tip!

Фото профиля jhey ▲🐻🎈
jhey ▲🐻🎈1 год назад

made me go back in time, remembered writing about this in 2018 my analogy then was "Who let the dogs out?" but realistically, it's like a lazy version of subgrid ⭐️

Фото профиля Wes Bos
Wes Bos1 год назад

👌 always a few years ahead of us Mr Hey, J

Фото профиля Brandon Sara
Brandon Sara1 год назад

I'm forced to use angular at work right now and display: contents comes in handy a lot since all components are also html elements.

Фото профиля Wes Bos
Wes Bos1 год назад

Ahh Yah! Back before <>React fragments</>, this would have been a life saver

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