|
|
|
|
|
by mind-blight
1301 days ago
|
|
I actually think a lot of CSS-in-js frameworks became popular for the same reason that React became popular: css, html, and to some extent JavaScript can't really be decoupled. Things like CSS Zen garden made it seem like they were, but that was only a separation of control. If the HTML structure changes, then the CSS likely needs to change. That's a tight coupling. CSS-in-js embraces the coupling and makes it explicit instead of implicit, which makes refactoring safer and speeds up development. edit for typo |
|