I Built My React Site For Humans, Not AI. That Was Stupid.

A

Adil Sher

Author

Nov 25, 2026
4 min read
0 views
I Built My React Site For Humans, Not AI. That Was Stupid.

Last month, I spent three days optimizing a Next.js product page for search rankings. I did everything right, meta tags, structured data, mobile-first design. The site looked great in Chrome, performed well on Lighthouse, and my client was happy. Then a question hit me like a bug in production: "Will ChatGPT even see this?"

I had no idea. I realized I'd been building for Google's crawler, a bot I actually understood, while completely ignoring the fact that Claude, ChatGPT, and Perplexity were now competing search systems viewing the exact same page. And they were probably seeing something completely different from what I'd optimized for.

That's when I found this article, and it changed how I think about SEO in 2025.

Three Different Things, Not One

The article breaks down something I'd conflated into a single idea: "AI crawlers." There are actually three distinct visitors to worry about, and each one sees your site differently.

First, there are crawlers, GPTBot, ClaudeBot, Perplexity's bot. These are the ones building indexes and training data, visiting regularly. Then there are user-triggered fetchers like ChatGPT-User, which grabs a page because someone asked about it. Finally, there are actual browser agents that render JavaScript, click buttons, and interact with forms in a real browser environment.

I'd been treating all three the same way. That's the mistake.

The JavaScript Problem (That Isn't New, But Worse)

Here's what landed for me: most AI crawlers don't execute JavaScript. At all. They fetch your files, download your JS bundles, and then do nothing with them. They see the raw HTML.

For a React app, this means they see an empty <div id="root"></div> and nothing else. No product data. No pricing. No links to follow. If your entire interface renders client-side, congratulations, you're invisible to ChatGPT and Claude.

<!-- What crawlers actually see from your React app -->
<!DOCTYPE html>
<html>
<head><title>My Product</title></head>
<body>
 <div id="root"></div>
 <script src="/static/js/main.4f8a2c.js"></script>
</body>
</html>

The irony is sharp: we download these JS files at 11-24% of the time, but we're not running them. We're wasting bandwidth on a form of content that's invisible to these systems. Google renders JavaScript (using Chromium). Googlebot will actually execute your code and potentially see your content. Everyone else stops at the HTML boundary.

This explains why I've seen React sites completely missing from AI search results while their competitors get cited. I thought it was a content problem. It was an architecture problem.

Google Isn't Your Free Pass

I need to be clear: Googlebot executing JavaScript doesn't mean you're golden. Rendering takes server resources. A broken JS file can hide your content. And Google's rendering capability doesn't transfer to Copilot (which uses Bing), ChatGPT (OpenAI's own crawlers), or Perplexity.

I've been checking Google Search Console to verify my sites render correctly. That's one system out of several. I need to check at least three different perspectives now.

The Agent Problem Is Different

Browser agents, the ones that actually click and interact, work differently. They need to understand your DOM structure and accessibility tree. A screenshot might confuse them. Too much nested HTML is noise. But a well-structured, accessible page? They navigate it like a user would.

This is where your semantic HTML and ARIA attributes actually matter beyond compliance. If your buttons aren't real buttons, if your links aren't real links, an agent can't work with your page.

What I'm Doing About This

I'm making three changes to my workflow:

  1. Check my server logs. See which bots are actually visiting. 404 rates above 30% mean my site structure is broken for crawlers.

  2. Test client-side rendering thoughtfully. For content-heavy pages, I'm moving back toward server-side rendering or static generation. React doesn't have to mean CSR everywhere.

  3. Build for accessibility first. Semantic HTML, proper ARIA, real buttons and links. It helps screen readers, it helps agents, and it's the right thing to do anyway.

The Uncomfortable Question

Here's what bothers me: AI companies don't fully document what their crawlers see. This article is built on data from December 2024. In six months, Perplexity might start rendering JavaScript. Claude might change their crawl strategy. I'm making decisions based on incomplete information.

The real source of truth is testing your own site. What do your logs actually show? What can you verify?

Are you building for crawlers you can't see? What would change if you knew exactly what ChatGPT saw when it visited your site?

Source: This post was inspired by "🔥 What AI bots and AI agents actually see on your website (and how to check it in 5 minutes) #3" by Dev.to. Read the original article

Written by Adil Sher

Full stack developer building high-traffic platforms, AI services, and custom web applications. Explore my portfolio, learn about my background, or get in touch.

Related Articles

I've Been Shipping Inaccessible AI Code and Didn't Even Know It
Web Development Nov 23

I've Been Shipping Inaccessible AI Code and Didn't Even Know It

I had one of those moments last week where I realized I'd been doing something wrong for months, and the worst part wasn't the mistake, it was how obvious the solution was once I saw it. I was reviewing a landing page my team built using Claude with a detailed layout prompt. The s...