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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

We moved away from web components – learnings from a Component-First DevTool

6 点作者 vdelitz10 个月前

1 comment

dinoreic10 个月前
Long article, and I have to say that I do not agree with ~ 90% said.<p>Problem with web components is that they have a few gotchas, one has to solve it he wants to use them effectively. I agree that SSR is a problem, if it is a problem. Crawlers now render JS, I have not see any benefits of SSR for a long time now.<p>Also there are a lot of mentions of Shadow DOM. Why would anyone want to use that? It is slower, detached from main process. Just use original DOM and modify it.<p>Also, if devs &quot;want!&quot; native components for React, Vue, etc., that does not mean Web components are bad, that only means devs want native components for their FW :).<p>I personally hacked my Web components micro FW in 2 weeks, and started to replace Svelte and Rails&#x2F;StimulusJS with it. I am every happy, but you need to know how to handle gotchas.
评论 #40970119 未加载
评论 #40969907 未加载
评论 #40969862 未加载