CSS @scope: Scoped Styles Without the Hacks
Native style scoping without Shadow DOM, CSS Modules, or BEM. @scope finally closes the gap between how we think about components and how CSS works.
Senior frontend engineer with 13 years building for the web. I care deeply about CSS architecture, clean React patterns, and writing code that future-me won't hate. Currently working at Camperdays.
This is where I write about frontend things — not tutorials, more like notes from the field.
Native style scoping without Shadow DOM, CSS Modules, or BEM. @scope finally closes the gap between how we think about components and how CSS works.
Nested else blocks are rarely necessary. Here's how to flatten your logic and make your code easier to read at a glance.
RSC sounds complex because frameworks present it as magic. Strip that away and the mental model is simple — and it maps cleanly onto architecture you already know.