That's a hard one. Last I checked, the "official" solution for styling React apps is CSS-in-JS, which uses the HTML style attribute, which makes BEM irrelevant. However, if you decide to style your app with traditional CSS files (or <style> tags), then yes, BEM is valid.
As far as other frameworks, it depends. Angular 2+ and Vue (with Single File Components) have CSS encapsulation, so BEM, while still valid, is probably solving a problem you don't have.
There are a few other good CSS architectures worth considering as well, like SMACSS and Atomic. And rolling your own is fine too.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
That's a hard one. Last I checked, the "official" solution for styling React apps is CSS-in-JS, which uses the HTML
style
attribute, which makes BEM irrelevant. However, if you decide to style your app with traditional CSS files (or<style>
tags), then yes, BEM is valid.As far as other frameworks, it depends. Angular 2+ and Vue (with Single File Components) have CSS encapsulation, so BEM, while still valid, is probably solving a problem you don't have.
There are a few other good CSS architectures worth considering as well, like SMACSS and Atomic. And rolling your own is fine too.