3 ms·
I'm not sure that this really solves the problem better than keeping your less files next to your jsx files for component specific styles and relying on css cla
by tracker1 11y ago
I'm not sure that this really solves the problem better than keeping your less files next to your jsx files for component specific styles and relying on css classes, hierarchy or properties as it stands.
I've gone down the path of doing similar things to this, and in the end I find it's more complex than simply using less (or scss)... While I appreciate the effort actually inheriting styles in/out of react components, based on parent/child relationships is a lot harder to manage when dealing with your react components directly imho.
- clessg 11y agoAre you able to elaborate on what practical issues you ran into?
- tracker1 11y agoMainly centers around inheritance, or applying the same styles to multiple controls... it's much easier in CSS using classes, or hierarchies than it is directly in the controls... you'll usually wind up with some common js style files, and have to import/use them for reuse... and it just gets a bit weird, even compared to say bootstraps variables file.