Better HN
topnewbestaskshowjobs
Log inSign up

gustavnikolaj

1 karma · joined Dec 10, 2012 (13y ago) · 1 submissions

Submissions

comment 5y ago · link · parent

When you say "style"-attribute, I assume that you mean JSX. If you use JSX, you already have at least a transpiler, and some framework.

This is not a competitor to inline-styling via style-attributes, but more of an alternative to styled-components [1] or css-modules [2].

The big benefit with a solution like this is that it will work in browsers with no tooling at all. No transpiling or other code needed.

[1]: https://styled-components.com/

[2]: https://github.com/css-modules/css-modules