I agree, it also makes React component much more complex thant it should. I've seen open-source components with dozens of props for the css and where 80% of the javascript code was actually just styling.
I'm not sure what's the gain there versus something like Sass + BEM, except from making the javascript code way more unreadable.
Not to mention the mess in the html if it inlines the css.
Comments
I agree, it also makes React component much more complex thant it should. I've seen open-source components with dozens of props for the css and where 80% of the javascript code was actually just styling. I'm not sure what's the gain there versus something like Sass + BEM, except from making the javascript code way more unreadable.
Not to mention the mess in the html if it inlines the css.