正在加载视频...
视频加载失败
🤯 How am I just finding out about display: contents; Suuuuper handy for CSS Flexbox + Grid where the children aren't direct descendants.
10 条评论

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

lol 🍪

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

thanks, Eric! I appreciate the feedbac 👍🏻

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

Damn that’s a great tip!

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 ⭐️

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

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.

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