DEV Community

Discussion on: Why Everyone Is Fighting About CSS/UX and JS

Collapse
 
revskill10 profile image
Truong Hoang Dung

For whom who wants the "right" way to do CSS thing:

  • If in the beginning, there's only CSS-in-JS, i'm sure noone wants CSS things.

Why ?

  • Everything is Javascript makes you productive, because if CSS is non-existing in the beginning, we probably don't need webpack thing neither.

CSS is the bad guy here. It made the dev tooling more complicated than it should be.

The correct way in future is : Just put everything in JS !

Collapse
 
rickrogahn profile image
Rick Rogahn

Ha, no; sorry. Who wants to open and step through a debugger to figure out why the BG color on a button is incorrect. Nobody, ever. They are separated for a reason. JS frameworks made the tooling a nightmare fwiw. Tooling didn't really exist before npm and JS frameworks.

Collapse
 
madhadron profile image
Fred Ross

Interestingly, desktop toolkits started out this way and consistently went the opposite direction, creating theming languages and other equivalents of CSS to remove the visual layout from the code.

So based on the history of the field, CSS-in-JS will be a fad for a couple of years, and then fade into history for the same reasons that visual styling was factored out on the desktop.