TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is the state of the art in styling React.js components?

1 pointsby kornishalmost 9 years ago
Are you using inline styles, managed manually or with a library? External stylesheets applied mostly through classes? Inline &lt;style&gt; tags?<p>What&#x27;s the size of your codebase? How many developers working on it? Were there unexpected pleasant or unpleasant gotchas that you ran into? Does it matter, or have you found you spend very little time grappling with scoping component styling?<p>I&#x27;ve seen all of the above feature in various blog posts or trending GitHub libraries and don&#x27;t have a strong intuition for the tradeoffs. React favors self-contained, modular components, so external stylesheets doesn&#x27;t seem idiomatic. On the flipside, inline styling everything eliminates the possibility of using certain CSS transforms and pseudoselectors (iirc).

no comments

no comments