Question

Are single-page apps bad for SEO?

A single-page app is not bad for SEO when its important pages exist as HTML; it is bad when they do not. The problem is not React or the router, it is that the default build ships one empty document and assembles everything in the browser, where most answer-engine crawlers never look. Prerender the public routes or render them on the server and the same app is as readable as any static site. The apps that rank badly are the ones that shipped the default.

What actually breaks

Three specific things, none of them the router. One shell HTML file serves every route, so every page shares one title and no content. Tags set by a head-management component arrive after the fetch, so crawlers and link previews read the defaults. And the catch-all rewrite answers wrong URLs with 200, so the site has no real 404 and an unlimited number of empty pages.

What does not break

The app stays the app. A prerendered page still hydrates: the saved HTML is the first paint, the bundle loads and takes over exactly as before. Users notice nothing. You are not trading interactivity for readability, you are adding a document in front of the application.

What Google's rendering does and does not rescue

A single-page app that finishes rendering on its own, fast, with no login and no extra requests, has indexed fine on Google for years, and that is the experience that made people say JavaScript SEO was solved. It never worked that way for the rest of the web: Bing's crawler historically did not render at all, and the answer engines do not either. Building for the tier that renders is a bet on one engine's patience.

The test that settles it

curl -s https://your-site.com/ | grep -c "<h1". Whatever the answer is on your home page, run it on /pricing too. If either is zero, you are running the default, and the rest of this page is about changing that.

The decision to make

If the public pages are a handful of routes whose content changes when you deploy, prerendering the existing app is far less work and reads identically to a crawler. If the content comes out of a database and changes between deploys, a framework that renders on the server is the one that keeps working. The Cursor and Windsurf page works through both.

More questions

All questions →

Scan your site

Free, no account. You get the full checklist and your score.

Only scan sites you own or are authorised to scan. Free scans are limited. Terms

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.