Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Polished – A lightweight toolset for writing styles in JavaScript. Parent comment
As for css-in-js, there isn't much of an advantage to using it vs importing sass files as scoped.
With Sass you get:
- Familiare Syntax
- Avoids inline styles
- All benefits of the Sass community
vs with css-in-js you primarily gain:
- Dynamic and regular styles together
- One less compiler dependency
- Benefits of full JS for style generation
So I think this really depends on the project and your preference, I don't think there's a massive benefit either way.
There are no comments on this comment yet.
As for css-in-js, there isn't much of an advantage to using it vs importing sass files as scoped.
With Sass you get:
- Familiare Syntax
- Avoids inline styles
- All benefits of the Sass community
vs with css-in-js you primarily gain:
- Dynamic and regular styles together
- One less compiler dependency
- Benefits of full JS for style generation
So I think this really depends on the project and your preference, I don't think there's a massive benefit either way.