Is my React or single-page website invisible to ChatGPT?
The short answer
It can be, if the site renders its content only in the browser. Many AI crawlers are widely reported to read the HTML without running JavaScript, so a client-side React or single-page app can look like an empty page to them. Rendering the content on the server or generating static pages fixes this.
Why single-page apps are at risk
A classic single-page application sends the browser a nearly empty HTML file and a bundle of JavaScript. The script then fetches data and builds the page. Navigation between pages often happens without new HTML being loaded at all.
That works well for people using a browser. For a crawler that does not execute JavaScript, the page may contain little more than a title and an empty container. At the time of writing, the major AI companies have not documented full JavaScript rendering for their crawlers, and independent testing widely reports that AI crawlers fetch HTML without running scripts. Can AI crawlers read JavaScript explains the background.
How to test your site
Open one of your key pages, right-click and choose "view page source". This shows the HTML the server sent, before any scripts ran. Search it for a distinctive sentence from the page's main content. If it is missing, crawlers that do not render JavaScript will not see it.
Repeat for your home page, service or product pages and about page. Some sites render a few pages on the server and leave others client-side, so one good result does not cover the whole site. Also check that links between pages are real anchor links with an href, not click handlers, since crawlers follow links to find pages.
Rendering options that fix it
The fix is to make sure the content is in the HTML the server sends. The common approaches are:
- Server-side rendering, where each request returns fully built HTML. Frameworks built on React, such as Next.js or Remix, support this.
- Static site generation, where pages are built into complete HTML files ahead of time, which suits content that does not change by the minute.
- Pre-rendering, where crawlers are served a rendered snapshot. This can work, but it adds a moving part that can fall out of step with the live site.
Moving an existing client-side app to server rendering is a real development project, so it is worth checking how much of the site is affected first. Often the marketing pages can be rendered on the server while the logged-in app stays client-side.
Why it matters for being recommended
When ChatGPT searches the web, it reads a handful of pages and cites a few. A page that looks empty cannot be the one it quotes, so it falls back on directories, review sites or competitors. Search indexes that render JavaScript may partly cover you, but relying on that is a gamble. If a rebuild is planned, can a website redesign wipe out your AI visibility covers what to protect.