News for hackers. Stuff that matters.
Re:Real-world CSS vs. CSS-in-JS performance comparison by stevebmark on Tuesday June 08, 2021 @04:27PM (#27440322)
I don't think it's that clear cut, you can define all sorts of behavior with both HTML and CSS, and there's no semantic meaning in `<div>`, which itself changes page style due to its layout properties. I don't know what goalposts are being moved, React/css-in-js have never violated separation of concerns. After all, css-in-js produces CSS, and React produces HTML. Separation of technologies isn't a principle, but DSLs are a well established pattern.
Re:Real-world CSS vs. CSS-in-JS performance comparison by lwhi on Tuesday June 08, 2021 @06:55PM (#27442150)
Is complexity a drawback?
Re:Real-world CSS vs. CSS-in-JS performance comparison by stevebmark on Tuesday June 08, 2021 @07:52PM (#27442589)
What?
Re:Real-world CSS vs. CSS-in-JS performance comparison by lwhi on Wednesday June 09, 2021 @04:19AM (#27445502)
I believe any extra layer between intention and result will create extra complexity.

CSS in JS just isn't required a lot of the time. We have more mature methodologies available.