I see the benefits of using css in js, but after using BEM for years I don't have the issues that people usually run into and don't see myself changing for a while.
BEM and SMACSS really does solve a lot of problems. The only problem it can't solve is engineers over engineering a solution that BEM | SMACSS solves. I think this problem exists because not enough developers know BEM or SMACSS.
Putting CSS variables/logic in JS and using dynamic styles based on props (rather than adding another class name or attribute) is preferrable to SCSS/BEM imo
If you don't use JavaScript to handle styles and work on large scale projects, you will undoubtedly have to duplicate certain keywords and properties between CSS and JS, reducing scalability and increasing WETness.
17
u/Rhym Mar 07 '19
I see the benefits of using css in js, but after using BEM for years I don't have the issues that people usually run into and don't see myself changing for a while.