27 points · by zodvik · 2y ago · 3 comments
Like, look at this:
const styles = stylex.create({
base: {
width: {
default: 800,
'@media (max-width: 800px)': '100%',
},
},
});
HmmmmThe right solution is a library like this with proper cross-platform abstraction. Then you can simply compile css-in-js to stylesheets to have caching, therefore fully utilizing platforms capabilities.
Who cares whether css is written in css files or js files or whatever. Abstraction + solid tooling (compilation) + ide support is the way.