4 ms·
I wish it was still the consensus among JS devs. People are putting css into JS files, on top of html
by Inviz 4y ago
I wish it was still the consensus among JS devs. People are putting css into JS files, on top of html
- vonadz 4y agoI think it isn't the consensus anymore because there isn't actually a "correct" solution. It's too subject to personal preference. For example, I prefer having HTML + CSS + JS all in the same file because then I know everything relevant to the component or page I'm working on is right there. I do concede that it can get extremely unwieldy if you don't separate out components though.
- My71staccount 4y agoThere is a correct solution (the one you're not doing)
- vonadz 4y agoSure, just like there's a correct IDE.