3 ms·
Several CSS-in-JS libs support all of CSS, and allow you to write actual CSS and not camelCase styles. styled-components [1] is prob the most popular example.
by allover 9y ago
Several CSS-in-JS libs support all of CSS, and allow you to write actual CSS and not camelCase styles.
styled-components [1] is prob the most popular example.
Your complaint they are evaluating JS just to set styles is valid, tho some libs, like emotion [2] support static CSS extraction.
[1] https://www.styled-components.com/docs/api#supported-css https://www.styled-components.com/docs/api#supported-css
[2] https://github.com/emotion-js/emotion https://github.com/emotion-js/emotion