TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Facebook Open Sources StyleX

27 点作者 zodvik超过 1 年前

2 条评论

sdflhasjd超过 1 年前
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
mdhb超过 1 年前
CSS in JS was such a dumb mistake. This really shouldn’t be a serious consideration in 2023.
评论 #38541099 未加载