4 ms·
Interesting. Asking out of curiosity, not skepticism: why not use react styles in js directly, à la vjeux et al? Reasons I'd guess: not being able to use pseud
by rattray 12y ago
Interesting. Asking out of curiosity, not skepticism: why not use react styles in js directly, à la vjeux et al?
Reasons I'd guess: not being able to use pseudo-selectors and things like :hover; familiarity for designers; easier use of legacy code; benefits of SCSS that would take work to re-implement in js. But I'm curious what your real reasons were!
- lopatin 12y agoThat's pretty much it! Although the ideas presented here do make sense (https://speakerdeck.com/vjeux/react-css-in-js https://speakerdeck.com/vjeux/react-css-in-js) we haven't gotten there yet. Our css namespacing scheme solves the "global namespace" issue, which was the biggest issue that stood out for us.
- nulltype 12y agoI like the vjeux thing, I think for dynamic sites if we replace static html and css with javascript the world will be a better place.