Every few months someone on a team asks it: "Is React bad for SEO?" The short answer is no. React isn't the problem. Empty HTML is. This post…

Every few months someone on a team asks it: "Is React bad for SEO?" The short answer is no. React isn't the problem. Empty HTML is. This post shows how to check what crawlers actually get from your React app, why it matters beyond Google, and how to fix it with a small pre-render step on a Vite site. We also cover the trade-offs, because the fix isn't free. Where the myth comes from A new React app on Vite renders in the browser.

The server sends one small HTML file, and a script draws the page: lang="en"> Acme type="module" src="/assets/index-a1b2c3.js"> id="root"> People never notice, because the browser runs the script in a blink. But anything that reads only the HTML gets a title and an empty div. No headings, no text, no links to your other pages. So the honest version of the question is: does your page's content arrive in the HTML, or only after JavaScript runs?

What Google does with it Google can read a client-rendered page. It just takes longer. Google's own JavaScript SEO docs describe three phases: crawl, render, index. Googlebot fetches the HTML and queues the links it finds there. Pages that answer 200 wait in a render queue. Google says that can be a few seconds, but it can take longer. When resources allow, an up-to-date Chromium runs your JavaScript, and Google indexes the rendered page. A few things can stop a page before it renders.

A noindex in the first HTML may mean Google skips rendering, so a tag your JavaScript removes later may never be removed for Google. An error status can skip rendering too. And Google won't run JavaScript from files that robots.txt blocks. Google is the patient reader Google's docs also say server-side rendering or pre-rendering is still a great idea, because not all bots can run JavaScript. That's the part people miss.

Many search engine crawlers, AI tools that read pages to answer questions, and the apps that draw link previews in chats read the HTML and stop. For a client-only app, they get the empty div above. Your share tags often arrive late too, so the link preview comes out blank. Speed is the other half. With the content in the HTML, the browser can paint the page before the JavaScript loads, which helps on slow phones.

Source disclosure

This is a source-linked briefing. Read the original report from Dev Community .