MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b0xp2o/why_i_write_css_in_javascript/eill275/?context=3
r/javascript • u/fagnerbrack • Mar 14 '19
9 comments sorted by
View all comments
2
My reason for CSS not being in Javascript is very very simple.
While I work on the javascript file, someone else can work on the CSS file.
1 u/Magnusson Mar 16 '19 CSS-in-JS doesn't require styles to be colocated with components -- you can still import a separate JS file that contains component styles.
1
CSS-in-JS doesn't require styles to be colocated with components -- you can still import a separate JS file that contains component styles.
2
u/dogofpavlov Mar 15 '19
My reason for CSS not being in Javascript is very very simple.
While I work on the javascript file, someone else can work on the CSS file.