Next.js vs React Router v7 vs Astro: choosing a web framework in 2026

Next.js 16, React Router v7 and Astro compared for SaaS apps, marketing sites and content, with hosting, SEO and lock-in trade-offs.

INDI TECHNOLOGY5 min read

The React framework landscape changed a lot in 2025 and 2026. Remix merged into React Router v7, which now has a full "framework mode". Next.js 16 made Turbopack the default bundler and pushed Partial Prerendering toward general availability. Cloudflare acquired the Astro team in January 2026, and Astro kept shipping major releases under the MIT licence.

Each one is a good choice for something. This guide helps you match the framework to the product.

At a glance

Next.js React Router v7 (framework mode) Astro
Best at Full-stack React apps with mixed static and dynamic pages Data-heavy web apps built on web standards Content-first sites: marketing, docs, blogs
Rendering Server Components, SSR, static, ISR, partial prerendering SSR, static prerendering, client routing; loaders and actions Static by default; server rendering per page; "islands" of interactivity
JavaScript sent to browser Moderate; depends on client components Moderate Minimal by default
UI library React only React only Any (React, Vue, Svelte, Solid) or none
Data loading model Server Components, server actions, fetch caching Route loaders and actions (simple, explicit) Content collections, server endpoints
Hosting Best on Vercel; self-hosting works but needs care Any Node or edge host; official templates for many Static anywhere; adapters for Node and edge (strong on Cloudflare)
Learning curve Steeper (server/client split, caching rules) Moderate Gentle
Backing Vercel Shopify (React Router team) Cloudflare

How they differ in practice

Next.js: the full-stack default

Next.js is the most widely used React framework, with the biggest ecosystem, the most examples and the largest hiring pool. React Server Components let you fetch data on the server and send less JavaScript. It handles almost any product: SaaS dashboards, e-commerce, marketing sites, all in one app.

The costs:

  • Complexity. The server/client component boundary and caching behaviour are powerful but easy to misuse. Teams new to it often hit confusing bugs around caching and data freshness.
  • Hosting. It works best on Vercel. Self-hosting on AWS, GCP or your own containers is supported and common, but features like image optimisation, ISR and middleware need more setup (see Vercel vs self-hosting).

React Router v7: simple, explicit, portable

React Router v7's framework mode is what Remix became. Each route has a loader (get data) and an action (handle a form or mutation). It leans on web standards: forms, HTTP caching, fetch, Request and Response. The result is very predictable: you can read a route file and know what happens.

It suits data-heavy applications (admin panels, internal tools, SaaS apps with lots of forms) and teams who want to deploy on any Node or edge platform without vendor-specific features. It has fewer built-in conveniences than Next.js and a smaller ecosystem, but there's less magic to debug.

Astro: fastest for content

Astro renders pages to HTML and ships no JavaScript unless you ask for it. Interactive parts ("islands") can use React or another library. That makes it the fastest option for marketing sites, documentation, blogs and content-heavy e-commerce landing pages, with excellent Core Web Vitals and SEO.

It's not designed for complex, highly interactive apps. If your site is 80% content and 20% app, Astro plus a separate app is often better than forcing everything into one framework.

SEO

All three can produce fully server-rendered HTML, which is what search engines need. Astro produces the lightest pages by default. Next.js and React Router can match it with discipline: keep client components small, avoid shipping large libraries to the browser, and prerender content pages.

For a pure React single-page app that must rank, prerendering at build time is a simple alternative to a full framework. This website does exactly that: every page is rendered to static HTML at build time and served from S3 and CloudFront.

Lock-in and hosting

  • Next.js: open source, but some features are smoothest on Vercel. Many teams self-host successfully using standalone output in containers, or adapters for other platforms.
  • React Router: designed to run anywhere, with official templates for Node servers, containers and edge platforms.
  • Astro: static output runs anywhere; server features use adapters. Since the Cloudflare acquisition it integrates especially well with Cloudflare, while still supporting others.

Choose Next.js if…

  • you're building a full-stack product with both marketing pages and an app
  • you want the largest ecosystem and hiring pool
  • you're happy on Vercel, or have the DevOps skill to self-host well
  • your team can invest in learning Server Components and caching properly

Choose React Router v7 if…

  • your product is a data-heavy app with many forms and tables
  • you value predictable, explicit data flow over built-in magic
  • you need to host on your own infrastructure or a specific cloud
  • you're migrating an existing React Router or Remix app

Choose Astro if…

  • the site is mainly content: marketing, docs, blog, landing pages
  • page speed and SEO are top priorities
  • you want minimal JavaScript and simple hosting
  • you may use more than one UI library

Recommendation by use case

Project Pick
B2B SaaS app with a marketing site Next.js, or Astro (marketing) + React Router (app)
Internal admin and operations tools React Router v7
Company website, docs and blog Astro
Custom e-commerce storefront Next.js (or a commerce-specific framework like Shopify Hydrogen, which is built on React Router)
Content-heavy EdTech site with interactive lessons Astro with React islands, or Next.js
App that must run in your own cloud for compliance React Router v7, or self-hosted Next.js

Summary

Next.js is the safe full-stack default with the biggest ecosystem. React Router v7 is the simpler, portable choice for data-heavy apps. Astro is the best tool for content sites. Many strong teams use two of them: Astro for the marketing site and a React framework for the product.

We build web apps and sites with all three as part of our product engineering work. Ask us which fits your product and hosting constraints.

Terms in this article

Related services

Related industries

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call