Hacker News·8wWeb Components: The Framework-Free Renaissance
Modern browsers now natively support everything needed to build sophisticated, reactive UIs without React, Vue, or Angular. Web components — built on Custom Elements, Shadow DOM, templates, and the native event system — offer encapsulation, loose coupling, and long-term stability that frameworks cannot match. The article argues that the browser has effectively become the framework, and that the upgrade treadmill, dependency overhead, and abstraction layers of popular frameworks are avoidable. It walks through practical patterns: event-driven component communication using custom events that bubble up the DOM, data flowing down via attributes and properties, and Shadow DOM for true style encapsulation. A dashboard example illustrates how independent panels can respond to shared filters without global state or prop drilling. The piece acknowledges frameworks still make sense for teams with deep existing expertise, but advocates for web components — especially for new projects, smaller teams, or long-lived products — and suggests AI assistants can accelerate the learning curve.