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.

Facebook Open Sources StyleX

27 pointsby zodvikover 1 year ago

2 comments

sdflhasjdover 1 year ago
JSX is so good because it&#x27;s an effective language extension, but CSS-in-JS still feels like a dirty mess, everything just becomes strings in objects, it just takes the elegance of the CSS syntax and throws it out the window.<p>Like, look at this:<p><pre><code> const styles = stylex.create({ base: { width: { default: 800, &#x27;@media (max-width: 800px)&#x27;: &#x27;100%&#x27;, }, }, }); </code></pre> Hmmmm
mdhbover 1 year ago
CSS in JS was such a dumb mistake. This really shouldn’t be a serious consideration in 2023.
评论 #38541099 未加载