React JS SEO: Make JavaScript Websites Rank on Google

Last updated: 14 November 2026 · By Maroof Ahmed

React and other JavaScript frameworks make fast, app-like websites, but they can be hard for search engines to read. If your site renders content in the browser with JavaScript, Google may see an almost empty page at first, miss links between pages, or index the wrong titles. My React JS SEO service finds these problems and works with your developers to fix them, so Google can crawl, render and rank every important page. It is a specialised part of my technical SEO service.

I work (as part of SEO consulting) with sites built on React, Next.js, Gatsby, Vue, Nuxt, Angular and similar frameworks. Most of the fixes are made by your developers; my role is to find exactly what is wrong, explain why it matters, write clear tickets, and check the results in Google.

Common SEO problems on React sites

ProblemWhat happensTypical fix
Client-side rendering onlyGoogle sees little content on first loadServer-side rendering (SSR) or static generation (SSG)
Same title on every pageSearch results show one title for all pagesPer-route titles and meta tags
Links built with onClickGoogle cannot follow themReal anchor tags with href
Hash-based URLs (/#/about)Pages treated as one URLClean history-based routes
Content loaded after user actionText never seen by GoogleRender key content without interaction
Soft 404sMissing pages return 200 statusReturn proper 404 status codes
Huge JavaScript bundlesSlow loading and poor Core Web VitalsCode splitting, lazy loading, removing unused code
Missing sitemapNew routes not discoveredGenerate an XML sitemap from routes

Rendering: the main issue

Google can render JavaScript (I test this in every SEO audit), but it does so in a second stage that can be delayed, and it does not always wait for every script or API call. If your important content, links and meta tags only exist after JavaScript runs, there is a risk Google indexes incomplete pages or indexes them slowly. The safest approach for SEO pages is server-side rendering or static generation, which sends full HTML to Google and visitors from the start. Frameworks like Next.js make this straightforward. I check how each page type is rendered, compare what Google sees with what users see using Search Console’s URL Inspection, and recommend the right rendering method for each part of the site.

Metadata and routing

Every page needs its own title, meta description, canonical tag and structured data, set on the server or at build time. Single-page apps often show the same title everywhere or change it only after load. I check each route’s metadata, make sure canonicals point to the right URL, and confirm that each page has a clean, crawlable URL. Internal links must be real anchor tags with href attributes, so Google can follow them. These basics follow my on-page SEO rules, applied to JavaScript sites.

Speed and Core Web Vitals on JavaScript sites

JavaScript frameworks can produce very fast sites, but large bundles, heavy third-party scripts and client-side data fetching often make them slow on real phones. Interaction to Next Paint (INP) is a common weak point, because long JavaScript tasks block the page from responding to taps. I measure Core Web Vitals from real user data, find the scripts and components causing delays, and suggest fixes: code splitting by route, lazy loading below-the-fold components, reducing hydration cost, optimising images with the framework’s image component, and removing unused libraries. These overlap with the general speed work described on my speed optimization page, applied to modern frameworks.

Structured data and social tags

Schema markup and social sharing tags (Open Graph and Twitter cards) should be in the server-rendered HTML, not added later by JavaScript. Otherwise Google may miss the schema and social networks will show blank previews. I check that each page type outputs the right schema, such as Product, Article, FAQ or Organization, and that sharing previews work. Details on schema types are on my schema markup page.

Sitemaps, robots and status codes

JavaScript apps often forget the basics (the same ones I check in technical SEO): there is no XML sitemap, robots.txt blocks script or API folders Google needs to render pages, and missing pages return a 200 status with a “not found” message instead of a real 404. Each of these confuses Google. I check that the sitemap is generated from your routes and updated on each deploy, that robots.txt allows the resources needed for rendering, and that error pages return proper status codes. Redirects for changed routes should be server-side 301s, not JavaScript redirects.

Headless CMS and SEO

Many React sites pull content from a headless CMS like Contentful, Sanity, Strapi or a headless WordPress. The SEO fields, such as titles, descriptions, canonicals, noindex flags and alt text, need to exist in the CMS and be used by the front end. I check the content model, add missing SEO fields, and make sure editors can manage them without a developer. If your marketing team prefers a simpler setup, a WordPress site for marketing pages with the app on a subdomain is sometimes the better choice; see my WordPress website development page.

Moving to a JavaScript framework without losing rankings

Rebuilding a WordPress or static site in React or Next.js is one of the riskiest moves for SEO. URLs change, content gets trimmed, rendering changes and internal links break. I plan these rebuilds with a full URL map, a list of pages that must keep their content, rendering decisions for each page type, and a pre-launch check of the staging site with a crawler and Google’s testing tools. After launch, I monitor indexing and traffic daily for the first weeks. The process is the same one I use for every SEO migration.

Single-page apps vs marketing pages

Many products have both an app (behind login) and marketing pages (public). The app usually does not need SEO and can stay fully client-side. The marketing pages, blog and docs need to be indexable and fast. Mixing both in one single-page app often causes problems. A common solution is to render marketing pages on the server or at build time and keep the app separate. For software companies, this ties into my SaaS SEO service, where feature and comparison pages need to rank.

Testing what Google sees

I use several checks (the same ones in my SEO audits) to see your site as Google does: Search Console’s URL Inspection with the rendered HTML and screenshot, a crawl with JavaScript rendering on and off, the Rich Results Test for schema, and a look at the raw HTML response. Comparing these shows exactly which content and links depend on JavaScript. I share the results with clear screenshots so developers can see the problem, not just read about it.

Common React SEO mistakes

  • Using client-side rendering for every page, including blog and landing pages
  • Updating titles and meta tags only after the page loads
  • Building navigation with buttons and onClick events instead of links
  • Returning 200 status codes for missing pages
  • Blocking JavaScript or API folders in robots.txt
  • No XML sitemap, or one that misses new routes
  • Infinite scroll with no paginated URLs for Google to follow

Each of these can stop pages from ranking. Most are straightforward for developers to fix once they are clearly identified. Send your site through the contact page for a first look.

Working with your developers

React SEO depends on good teamwork between SEO and development. I write tickets in developer language, with the affected routes, what Google currently sees, what it should see, and how to test the fix. I join calls when needed, review pull requests or staging builds for SEO impact, and help set up simple automated checks, such as tests that fail if a page is missing a title or returns the wrong status code. This keeps SEO from breaking with each new release. For ongoing support, I can review releases monthly as part of a consulting plan described on my SEO consulting page.

Content still matters

Fixing rendering is only the first step. Once Google can read the pages, they still need to be the best answer for their searches. That means clear titles, helpful content, internal links and proof, just like any other site. Many JavaScript sites have very little text on their main pages, because they were designed like apps. I help plan content for key pages so they have enough substance to rank, using keyword research and content writing.

Do you write the code yourself?

My focus is diagnosis, clear developer tickets and verification (see my background). For WordPress sites I make many changes myself; for React and other frameworks, your developers implement the fixes, and I check them before and after release. This keeps changes inside your normal development process.

How long does a React SEO audit take?

Usually one to two weeks (book through the contact page), depending on the number of page types and how complex the rendering setup is. You get findings, tickets and a walkthrough call.

How a React SEO project works

  1. Crawl and render check. Crawl the site with and without JavaScript, and compare with Google’s rendered HTML. Start on the contact page.
  2. Findings. A clear list of issues by page type, with priority and impact.
  3. Developer tickets. Specific, technical tasks with examples your team can implement.
  4. Review. Check fixes on staging before release.
  5. Monitor. Track indexing, rankings and Core Web Vitals after release.

Frequently asked questions

Can Google index React websites?

Yes, but client-side rendering adds risk and delay, as explained in technical SEO. Server-side rendering or static generation is the safest choice for pages you want to rank.

Should we move to Next.js?

Not always. If your current setup can pre-render key pages (a common topic in migrations), that may be enough. I recommend a move only when the gains are clear.

Will server-side rendering slow down our site?

Done well, it usually makes the first load faster for users and Google, because the browser gets ready-made HTML. The main cost is server resources and caching setup, which your developers can plan. I help weigh the trade-offs for each page type, along with mobile SEO needs.

Free guide: Can Google crawl React sites? React SEO explained