4 ms·
Yes! Why aren't more people making this observation? One of the huge selling-points of React is the modularity of components, and yet styles frequently ruin tha
by namuol 11y ago
Yes! Why aren't more people making this observation? One of the huge selling-points of React is the modularity of components, and yet styles frequently ruin that modularity.
Anyway, I got so frustrated with the state of things that I created a library aiming to provide a solid interface for third-party component authors: https://github.com/namuol/react-declarative-styles https://github.com/namuol/react-declarative-styles
(Still very early stages/not published on NPM)
And yeah, I stress the same points you just made about the problems of using inline styles with third-party components: https://github.com/namuol/react-declarative-styles/blob/master/CSS_OR_INLINE.md#conclusions https://github.com/namuol/react-declarative-styles/blob/mast...