When Not to Use a JavaScript Framework in 2026

When Not to Use a JavaScript Framework

Frameworks are the default, but not free. When content and crawlability dominate, a server-rendered MPA or Web Components beat an SPA. Here is the honest call.

A JavaScript framework is the right tool when interactivity is the product, and an expensive default when it is not. In 2026 the honest alternatives are real: a server-rendered multi-page application enhanced with htmx or Hotwire, or standards-based Web Components, both of which avoid the framework runtime and a mandatory build step. The multi-page route also avoids hydrating a client-side component tree; server-rendered Web Components that need to respond to user interaction still run client-side JavaScript to attach that behavior to the HTML the server sends. This article gives you the cost framing and a deliberate decision rule, not a "frameworks are dead" argument.

The framework default is not free

For many teams over the last decade, "we're building a website" implicitly meant "we're starting a single-page application." The framework was the default, and the default felt free because the cost was deferred rather than absent. It is worth naming the cost precisely, because a decision you cannot price is a decision you cannot make well.

A single-page application framework charges you in five currencies. It ships JavaScript to every visitor, which competes for the same main thread that handles user input. It carries a hydration cost — the server-rendered HTML is re-animated on the client by re-running the component tree, work the user already paid for once. It adds build complexity: a bundler, a transform pipeline, and a deploy story that a static file or a server-rendered page does not need. It churns its APIs across major versions, which becomes a maintenance tax that outlives the engineer who chose it. And it shapes hiring — narrowing or widening the pool of people who can maintain what you built.

Three of those currencies deserve a sharper look because they are often waved away. The hiring and churn cost is structural, not incidental: a framework you adopt today is one whose major version cadence you have signed up to track for the life of the product, and the engineers who can maintain it are a moving population, not a fixed asset. The build-complexity cost is easy to underestimate — a bundler, a transform step, a dev server, and a deploy pipeline are infrastructure you now own, debug, and upgrade, and that infrastructure has its own failure modes that have nothing to do with the product. A static file served from a content delivery network has none of that surface area.

None of that makes frameworks bad. It makes them powerful tools with a real price tag. The mistake is not using a framework; it is reaching for one reflexively for a site whose dominant need is content and crawlability, where the interactivity that justifies the runtime barely exists. As this topic's overview guide puts it, a framework earns its cost where interactivity is the product — and a field guide that pretends the cost is zero is selling something. This article is the honest counterweight: where the platform and the server are enough, and how to tell the difference before the framework debate starts by habit.

The MPA renaissance

The multi-page application — distinct URLs, each serving server-rendered HTML, navigation by full page load or lightweight enhancement — never actually disappeared. What changed is that the tooling around it caught up. On performance, web.dev's rendering guide broadly encourages developers to consider server-side or static rendering over a full rehydration approach.

The pattern that makes this practical in 2026 is hypermedia-driven interactivity: the server returns HTML fragments in response to user actions, and a small client library swaps them into the page without a framework runtime. htmx is one example — htmx 2.0 was released in June 2024, and its model is that any element can issue a request and replace part of the DOM with the HTML the server returns, so interactivity lives in HTML attributes rather than a client-side component tree. Hotwire, with its Turbo component, takes the same server-driven approach: it intercepts navigation and form submission, fetches the new page or fragment, and updates the DOM, again without an SPA runtime to ship and hydrate.

The fit is strongest for three shapes of product: content sites where pages map cleanly to URLs, internal admin and CRUD tools where the interaction is mostly forms and tables, and any surface where the dominant need is fast first paint and crawlability rather than rich client state. For these, a server-rendered MPA with light enhancement avoids the framework runtime, hydration, and build complexity outright — not by optimizing them down, but by not incurring them. There is no client component tree to hydrate, because there is no client component tree; the HTML the server sends is the page, and what ships to the client is a small enhancement library — htmx lists itself at about 16 KB minified and gzipped (as of Nov 2026, htmx.org) — rather than a framework runtime plus its application bundle.

A second, quieter advantage is operational. An MPA's behavior is legible: a request maps to a response, and when something is wrong the failure can often be traced to one server handler rather than being distributed across a client state machine, a hydration mismatch, and a bundle. That legibility is itself a maintenance saving over the years a content product actually lives. The honest qualifier: this approach has a ceiling. When interactions need shared client state across many regions, optimistic updates, offline behavior, or a long-lived in-memory session, the server round-trip model strains, and that is exactly the boundary where a framework starts earning its cost rather than merely incurring it.

Web Components and the platform

The second honest alternative is the platform itself. Custom Elements — the browser's native API for defining reusable, encapsulated components — are Baseline Widely available in their autonomous form, the elements registered with customElements.define without its extends option: all core browsers have supported them since January 2020 (as of Nov 2026, web-features). Customized built-in elements, which pass that extends option to extend a native element and are used through the is attribute, are not Baseline, because Safari does not support them (as of Nov 2026, web-features) and has said it does not plan to. The long-standing gap for server rendering closed when Declarative Shadow DOM became Baseline in 2024 (Widely available since August 2026, as of Nov 2026, web-features), letting a component's shadow tree be expressed in HTML the server sends rather than only constructed by client JavaScript.

This matters most for two situations. The first is a framework-agnostic design system: a component library built as Web Components can be consumed by a React app, a Vue app, a server-rendered MPA, and plain HTML, which is valuable when the consuming surfaces are heterogeneous or expected to outlive any single framework choice. The second is a long-lived product where longevity is the priority — standards-based components do not churn on a framework's release cadence, because the standard is the contract.

The trade-offs are real and should not be glossed. The authoring ergonomics of raw Web Components are coarser than a modern framework's: reactivity, templating, and state are things you assemble rather than receive. The ecosystem of ready-made components and integrations is thinner. And styling and accessibility through Shadow DOM have sharp edges that a framework's component model often smooths over. The honest position is that Web Components buy longevity and framework independence at the cost of ergonomics and ecosystem — a trade that is correct for a durable design system and often wrong for a fast-moving product team that benefits from a framework's velocity.

The honest decision

The decision is not "framework versus no framework" as a tribe to join. It is a quantity question answered before the framework discussion, not during it.

If interactivity is sparse and content, SEO, and AI crawlability dominate, a single-page application framework is overhead — you are paying the runtime, hydration, and build cost to power interactions that a few server round-trips or a handful of progressive-enhancement scripts would cover. If the product is the interactivity — an editor, a canvas, a real-time dashboard, an application the user lives inside for an hour — a framework earns its cost cleanly, and refusing one out of minimalism is its own kind of dogma. The interesting case is the middle: a mostly content-shaped product with a few genuinely interactive regions. The honest answer there is often hybrid — server-rendered pages with islands or Web Components for the few interactive parts — rather than promoting the whole product to a single-page application because one widget needed state.

The islands approach to that hybrid — the rendering model where interactive components are isolated and hydrated independently inside an otherwise static page — is its own subject, and this topic's islands article covers the mechanics; the point here is only that "a few interactive parts" is an argument for isolating them, not for an SPA. Frameworks are not the enemy and the platform is not a purity test. The error in both directions is the same: choosing by identity instead of by the measured amount of interactivity the product actually has.

Diagnostic checklist for the next planning cycle

If you are about to start a project and the framework feels like a foregone conclusion, run this check before it hardens:

  • Write down every interactive behavior the product actually needs, and mark each as form-and-navigation (server round-trip is enough), isolated-widget (an island or Web Component), or pervasive-client-state (a framework earns its cost).
  • If the list is dominated by the first two categories, prototype the riskiest interaction as a server-rendered page with htmx or Hotwire before accepting a single-page application by default.
  • If you need framework-agnostic or long-lived UI, evaluate Web Components for the design-system layer specifically, with eyes open about the ergonomics and ecosystem trade-off.
  • Price the framework honestly: shipped JavaScript, hydration cost, build pipeline, API churn, and the hiring pool — and confirm the interactivity you listed actually justifies all five.
  • Revisit the decision when requirements change. The right call shifts when interactivity grows; the failure is locking in by habit and never re-asking the quantity question.

The framework is a tool with a price, not a starting assumption. Measure the interactivity first, and the choice between the platform, an island, and a full framework becomes a defensible answer instead of a default you never examined.

Project Inquiry