--

I think scoped CSS only takes care of the block part, and even then only at a component level, not when you are trying to find something in your page markup. Having consistent element and modifier naming is still a great win for readability and maintainability. Putting things like `text` and `highlighted` in the same element still creates a mess if you then add another element that can have a highlighted state. I think BEM is still very much needed, and still aligns well with stateful nature of UI components

--

--

Ismayil Khayredinov
Ismayil Khayredinov

Written by Ismayil Khayredinov

Software engineer who combines optimism with pessimism to build robust and idiot-proof solutions

No responses yet