Customer Impact

SEO

JavaScript Framework SEO: Next.js, React and Vue Without Ranking Loss

Copy for AI

JavaScript framework SEO comes down to what’s in the first HTML response.

The framework doesn’t rank. The rendering strategy does.

The verdict: Next.js, React and Vue can all rank well, as long as your money pages arrive as finished HTML. Pure client-side rendering is where rankings leak.

JavaScript frameworks like Next.js, React and Vue make fast, interactive sites possible.

But the same technology that makes your app feel smooth can quietly erode your rankings.

The risk: when a search engine or AI crawler fetches your page and sees only an empty <div id="root">, you lose visibility.

No amount of link building or content wins that back.

Below: Next.js SEO, React SEO and Vue, each with its own traps, plus a test you can run today.

Why are JavaScript frameworks an SEO problem?

Because many JavaScript sites send bots an empty page first and fill it in later.

Ready-made HTML versus an empty shell

A classic server-rendered page returns ready-made HTML.

A bot fetches the URL and immediately reads your headings, text and links.

A typical single-page app does the opposite.

The server sends a virtually empty HTML shell. Here’s roughly all a bot gets:

<body>
  <div id="root"></div>
  <script src="/assets/index.js"></script>
</body>

The content only appears once the browser has downloaded and run the JavaScript bundle.

That’s called client-side rendering (CSR): the browser builds the page, not the server.

Our explainer on client-side rendering and AI search goes deeper into that model.

Google renders, but in a second step

Google can render JavaScript, but it does so after the HTML has been fetched.

Per Google’s JavaScript SEO basics, every page goes into a render queue.

It “may stay for a few seconds, but it can take longer than that.”

Google’s own advice: it still calls server-side or pre-rendering “a great idea”, because not every bot can run JavaScript.

Most AI crawlers don’t run JavaScript at all

And many bots can’t. Vercel’s crawler analysis found that none of the major AI crawlers it measured execute JavaScript, including GPTBot, ClaudeBot and PerplexityBot.

They fetch the files but never run them.

The exception: Gemini, because it uses Googlebot’s rendering.

The volumes aren’t small either.

Here’s what Vercel counted on its network in one month:

CRAWLER FETCHES PER MONTH (VERCEL NETWORK) AI crawlers are already 20% of Googlebot Googlebot 4.5 billion GPTBot 569 million, runs no JavaScript Claude 370 million, runs no JavaScript Source: Vercel, The rise of the AI crawler. Whatever isn't in the first HTML, these bots never see.

That’s roughly 20% of Googlebot’s volume, from bots that only read raw HTML.

Two more numbers from the same study stand out:

  • JavaScript files: 11.50% of ChatGPT’s fetches and 23.84% of Claude’s, downloaded but never run
  • 404 errors: 34.82% of ChatGPT’s fetches and 34.16% of Claude’s, against 8.22% for Googlebot

So AI crawlers already waste many requests. Don’t make them waste one more on an empty shell.

Our experience: we run a lot of log file analysis, mostly for larger companies that want to see how AI uses their site. The number of AI agents visiting websites grows significantly year over year.

Search Console shows Google’s side of that traffic.

Look at total crawl requests and the breakdown by response:

Google Search Console Crawl Stats report for customerimpact.be with total crawl requests, download size, average response time and the breakdown by response, the place to check how bots crawl a JavaScript framework site Crawl Stats in our own Search Console for customerimpact.be, October 2026. AI crawlers don’t show up here; for those you need your server logs.

How to read those logs is in our guide to log file analysis for SEO.

What that means for a B2B site

For a B2B site that wants to rank and be cited, it’s a double risk.

Whatever isn’t in the first HTML simply doesn’t exist for a large part of the search landscape.

This isn’t an abstract debate.

It hits the core of SEO: can a bot read your content, understand it and follow the links to your service pages?

Where we start: every technical audit we run begins there.

A framework choice that sabotages the first crawl weakens every other effort.

What is hydration, and why is it the silent killer?

Hydration is your framework bringing server-sent HTML “to life” by attaching JavaScript event listeners.

A page that looks loaded but isn’t

The problem: a page can look fully loaded while it isn’t interactive yet, because hydration is still running.

To users, that feels like a page briefly freezing.

You click a button and nothing happens.

What it does to your Core Web Vitals

For your Core Web Vitals, it’s more damaging.

Heavy hydration shifts work onto the main thread.

That pushes two metrics the wrong way:

Those are exactly the signals that feed into how Google judges the user experience of your page.

Targets: LCP within 2.5 seconds, INP of 200 milliseconds or less, CLS of 0.1 or less, at the 75th percentile of page loads.

You can check your own field data in PageSpeed Insights. Look at the LCP and CLS values for mobile:

PageSpeed Insights field data for customerimpact.be on mobile: LCP 1.9 s good, CLS 0.13 needs improvement, the Core Web Vitals check for any JavaScript framework site PageSpeed Insights field data for customerimpact.be on mobile, October 2026. LCP passes at 1.9 s; CLS at 0.13 still needs work.

Our own site is built in Astro and ships every article as static HTML. Even so, layout shift still needs attention.

So static rendering fixes the first crawl, not every metric. Run any page through our website speed test for a quick read.

Hydration mismatches: what the bot sees differs

There’s something subtler at play too: hydration mismatches. The server renders HTML that doesn’t exactly match what the client expects.

React then tries to recover. The React docs on hydrateRoot are blunt about the cost:

  • Best case: a mismatch means a slowdown
  • Worst case: event handlers attach to the wrong elements
  • Text: React won’t patch mismatched text, so users and bots can see different words

You rarely see these errors in your own browser, because it finishes everything neatly. A bot that fetches the page once, and faster, often sees the half-finished version.

Rule of thumb: sending less JavaScript to the client is almost always better for SEO than sending more.

Every framework below offers ways to do that, but you have to choose them deliberately.

Next.js SEO: why does configuration decide everything?

Next.js is the SEO-friendly React choice, provided you pick the right rendering mode per page.

Four rendering modes, one choice per route

Next.js lets you choose per route. Newer server components run on the server by default and send less JavaScript to the client.

Here’s what each mode hands a bot on the first fetch:

Rendering modeWhat the bot gets firstBest for
Static generation (SSG)Full HTML, built aheadService pages, articles, cases
Server-side rendering (SSR)Full HTML, built per requestPages with live data
Server componentsFull HTML, less client JavaScriptMost marketing routes
Client-side rendering (CSR)An empty shellLogged-in dashboards only

The difference between the first two is covered in our piece on server-side rendering and SEO.

Three mistakes we see in Next.js builds

The trap is that this flexibility is also how things go wrong.

Mistake 1: content loaded in a useEffect. It only appears after hydration, so it falls outside the first HTML.

Mistake 2: mishandled errors during server rendering. When a component inside a Suspense boundary errors on the server, React’s streaming renderer sends the loading fallback in the HTML.

It retries on the client, while the response still returns a 200. Your server-rendered content disappears without a sound.

Mistake 3: metadata set on the client instead of the server. That stops your title and meta tags from being picked up reliably.

What we recommend for B2B

Use static generation or server rendering for anything that has to rank:

  • service pages
  • knowledge articles
  • case pages

Save pure client-side rendering for what genuinely sits behind a login or an interaction. That keeps commercial pages readable on the very first fetch.

Watch out: static pages go stale without revalidation, so plan how prices and dates refresh.

React SEO: why is client-side by default the risk?

A bare React app renders entirely in the browser, so bots without JavaScript see nothing.

The empty shell, by default

Think of a legacy Create React App setup or a client-only Vite build. The server delivers an empty shell.

React deprecated Create React App in February 2025. It now points new projects to frameworks such as Next.js or React Router.

For a marketing site: an empty shell is the worst possible starting position.

Your three ways out

React doesn’t solve this on its own. You need a framework or rendering layer around it:

  1. A meta-framework: Next.js, or React Router in framework mode (where Remix has since merged)
  2. Your own SSR: renderToString on your own server
  3. A band-aid: pre-rendering or dynamic rendering for bots

That third route has extra moving parts that can break. Google’s dynamic rendering page calls it “a workaround and not a long-term solution.”

Google recommends server-side rendering, static rendering or hydration instead. Our guide to JavaScript SEO and rendering compares the options.

The bet you don’t want on money pages

The heaviest signal: your most important content only appears after an API call from the browser returns.

Then you’re betting that every crawler runs your JavaScript and waits for your API. That’s a bet you don’t want on your money pages.

Want to know if your site has this problem?

The fix: check whether Google is indexing your pages and what the rendered HTML shows.

Vue SEO: the same dividing line, different names?

Yes: a standard Vue app renders client-side, with the same empty-shell problems as React.

Nuxt is Vue’s Next.js

Here the solution is called Nuxt. It’s the meta-framework that brings server rendering, static generation and hybrid rendering to Vue.

That’s comparable to what Next.js does for React.

The same traps, renamed

The traps run in parallel:

  • client-only data fetching that keeps content out of the first HTML
  • hydration mismatches when server and client state diverge
  • metadata that isn’t set server-side

The names differ; the mental model doesn’t.

Best for Vue teams: Nuxt with server or static rendering for every page that has to rank.

How do you judge a framework on pipeline?

Ask one question: can a bot read your commercial pages on the first fetch, without running JavaScript?

A framework choice isn’t a matter of taste for the development team alone. Here’s the whole decision in one picture:

RENDERING DECISION What does a bot see on the first fetch? Static generation (SSG) HTML built ahead, served instantly Full HTML safe for ranking pages Server rendering or server components HTML built per request Full HTML if errors are handled Client-side rendering (CSR) browser builds the page from JavaScript Empty shell only behind a login Pick the mode per route. The framework name matters far less than this choice.

The view-source test in four steps

You don’t need a tool to run the first check. Do this on your three most important pages:

  1. Open the page and choose “view source”, not “inspect”.
  2. Search the source for your H1 and one sentence of body text.
  3. Check that internal links, title, meta description and canonical are there.
  4. Compare with the rendered HTML in Search Console’s URL Inspection.

For example, say your services page shows a full hero in the browser, but view source shows only a script tag. Then that page is invisible to GPTBot.

The raw source of a statically rendered page looks like this:

If the text is in there, bots can read it. If not, you’ve found your leak.

Rules of thumb we apply

A few rules we use in every build and audit:

  • Render everything that has to rank on the server or up front (SSR or SSG), not in the browser.
  • Keep metadata server-side, so title, meta description and canonical are read reliably.
  • Limit client-side JavaScript: less hydration means better Core Web Vitals and fewer mismatches.
  • Test with the real first HTML, not what your own browser eventually finishes.
  • Treat a migration as a risk moment: a framework switch is exactly where rankings collapse after a website redesign.

Large sites should also check how render time eats into their crawl budget.

Fold rendering into the wider strategy

For us, SEO is the acquisition layer of one steered growth machine, not a separate technical checklist.

A framework that gives beautiful demos but makes service pages unreadable costs you pipeline, not just positions in a report.

That’s why we fold the rendering choice into the broader strategy.

Related choices: it sits alongside calls such as your headless CMS setup and your overall website tech stack.

Local businesses: working without a fixed visiting address? Then your approach to local SEO without a physical address matters as much as rendering.

Frequently asked questions

Is Next.js good for SEO?

Yes, if ranking pages use static generation, server rendering or server components. Next.js only hurts SEO when content loads client-side, for example in a useEffect.

Can Google index a client-side React app?

Often, yes, because Google renders JavaScript in a second step. But that takes longer, and most AI crawlers don’t run JavaScript, so they see an empty page.

Is Nuxt better than plain Vue for SEO?

For pages that must rank, yes. Nuxt adds server and static rendering, which plain Vue lacks by default.

Do I need dynamic rendering for my JavaScript site?

No. Google calls dynamic rendering a workaround, not a long-term solution, and recommends server-side or static rendering instead.

Is your framework costing you rankings?

Only if your money pages don’t arrive as finished HTML.

Check that first, then worry about which framework the team prefers. Our guide to static versus dynamic websites helps with the bigger choice.

Next step: not sure your Next.js, React or Vue site is readable on the first crawl? Our SEO specialist maps your rendering, hydration and indexing, and ties it to growth.

Get in touch and we’ll start with a view-source check of your key pages.

Free website scan

Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.

Where should we send your report?

We only use your details for your scan. No spam, unsubscribe anytime.