Comparison of CSS in JavaScript Libraries for React
github.com
github.com
var globalStyles = require("globalStyles");
var styles = { color: globalStyles.blue, padding: foo ? "15px" : "10px", margin: bar(this.state.qux) }
We built Radium to solve the problems this causes, like :hover - it's the lib Chan talks about in that React Europe talk christopherscot links to.
http://projects.formidablelabs.com/radium/
I talked at CSSConf about ditching CSS for inline about a month ago:
You get scoped, modular, composable, requirable CSS without the burden of doing styles in JS.
[1] https://github.com/css-modules/css-modules
I think that css-modules (implemented in webpack's css-loader) is the sanest approach: https://medium.com/seek-ui-engineering/the-end-of-global-css...