Web frameworks were designed for human developers — readable abstractions, shared conventions, career value. AI coding agents have none of those needs. They don't benefit from abstractions meant to be read, and framework consistency is irrelevant when consistency comes from the agent's own skill. Writing directly against the web platform instead eliminates package.json, bundlers, transpilers, lockfiles, and postinstall scripts — all of which agents can silently manipulate without review. The platform gap is closing fast: custom elements power GitHub, YouTube, Photoshop on the web, SAP UI5, and Adobe Spectrum. React 19 even added proper custom element support. What frameworks still provide beyond standards is small: lit-html for templating, a simple unidirectional store for state. Widget libraries are still needed, but custom elements expose a stable, specified interface (attributes, properties, events, slots) that an agent can drive without versioned documentation — unlike React props that change between major versions. Platform code also outlives the conventions that produced it, making it more durable for agent-generated codebases.

3m read timeFrom adambien.blog
Post cover image

Questions this post answers

Why would an AI coding agent prefer web components and the native platform over React or Angular?

Frameworks like React and Angular were designed for human readability, shared conventions, and career value — none of which apply to agents. The web platform eliminates package.json, bundlers, transpilers, and lockfiles that agents can silently modify. Custom elements expose a stable, specified interface (attributes, properties, events, slots) an agent can drive without versioned documentation, whereas React props change between major versions and require correctly versioned docs. Teams shipping agent-generated frontends track this platform-vs-framework debate on daily.dev.

What real-world applications use custom elements in production?

Custom elements carry the interfaces of GitHub, YouTube, Photoshop on the web, SAP UI5, and Adobe Spectrum. React 19 added proper custom element support, signaling that major frameworks are moving toward the platform rather than away from it. The Interop project and Baseline tracking get new web standards into all three browser engines in months rather than years. Developers choosing between custom elements and component frameworks find the latest ecosystem moves on daily.dev.

311 Impressions