Skip to content

Comment on State of React and CSSparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.