RankWiki

Technical SEO

SEO React

React SEO is the practice of making React-based pages crawlable, indexable, fast, and metadata-rich so search engines can understand and rank them properly.

Also called
SEO for single-page applications
Applies to
React apps, SPAs, static sites
Commonly confused with
Next.js SEO

Key points

  • Every important route should have a unique <title> and meta description that match the visible page content.
  • Server-side rendering, static site generation, or prerendering can expose content in the initial HTML and improve indexability.
  • Use crawlable URLs and avoid hash-only routing for pages that should rank.
  • Performance matters: code splitting, image compression, and lazy loading help improve Core Web Vitals.
  • Semantic HTML elements like header, main, article, nav, and aside improve content hierarchy for both users and search engines.

How it works

React SEO works by ensuring that every important URL in a React application exposes unique metadata, accessible links, and fast, stable page content that Google can render and index reliably. React apps often render content client-side, which can delay or weaken how search engines see page content unless key SEO elements are delivered in HTML.

To achieve this, developers use server-side rendering (SSR), static site generation (SSG), or prerendering to expose content in the initial HTML. React apps should also generate XML sitemaps and robots.txt files so crawlers can discover the site’s public URLs. Structured data in JSON-LD helps search engines understand content types such as Article, Product, FAQ, Breadcrumb, and Organization.

Performance is critical: code splitting, image compression, lazy loading, tree shaking, and limiting third-party scripts help improve Core Web Vitals. Semantic HTML elements like header, main, article, nav, and aside improve content hierarchy for both users and search engines. Canonical URLs help reduce duplication problems, which can lead to seo cannibalization issues when the same content is available through filters, sorting, or multiple URL variants. Be mindful of crawlability issues that arise from JavaScript-rendered links or hash-based routing.

Where it changes your decision

  • When choosing a rendering strategy: decide between client-side rendering, SSR, SSG, or prerendering based on whether the page needs to rank in search.
  • When structuring URLs: use route-based navigation and avoid hash-only routing for indexable pages, as hash fragments are often ignored by crawlers.
  • When managing metadata: ensure every route has a unique <title> and meta description, and avoid generic or duplicate metadata across many pages.

What it is not

  • React SEO is not a guarantee of ranking: ranking outcomes still depend on content quality and site-wide SEO signals; React implementation alone does not guarantee visibility.
  • React SEO is not the same as Next.js SEO: Next.js provides built-in SSR and SSG, but React SEO applies to any React-based framework, including Create React App and Gatsby.
  • React SEO is not a one-time setup: performance or indexing issues can change as routes, deployments, or Google’s rendering pipeline change, so ongoing monitoring is needed.
  • React SEO is not about JavaScript alone: it also requires proper HTML structure, metadata, and crawlable navigation to work effectively.

Common mistakes

  • Relying on client-side rendering alone for pages that need to rank in search: this can delay or prevent content from being indexed.
  • Using duplicate or generic metadata across many routes instead of unique titles and descriptions: this weakens relevance signals for each page.
  • Using hash-based URLs or non-crawlable navigation patterns for indexable pages: crawlers may not discover or index those pages.
  • Shipping oversized JavaScript bundles that slow rendering and hurt Core Web Vitals: this can reduce user experience and ranking potential.
Read next Robots.txt After ensuring your React app is crawlable, reading about robots.txt helps you control which parts of the site search engines can access.

Questions people ask

React SEO best practices?

Best practices include using server-side rendering, static site generation, or prerendering to expose content in the initial HTML. Every important route should have a unique <title> and meta description, and use crawlable URLs with route-based navigation. Generate XML sitemaps and robots.txt files, add structured data in JSON-LD, and optimise performance with code splitting, image compression, and lazy loading.

Why react is not SEO friendly?

React is often considered not SEO-friendly because client-side rendering can delay or prevent search engines from seeing page content. Without SSR, SSG, or prerendering, the initial HTML may be empty or contain only a loading shell, making it harder for crawlers to index the content. However, with proper implementation, React can be made SEO-friendly.

Is react SEO friendly?

React can be SEO-friendly when implemented correctly. Using SSR, SSG, or prerendering exposes content in the initial HTML, and adding unique metadata, crawlable URLs, and structured data helps search engines understand the page. Performance optimisation and semantic HTML further improve indexability and user experience.

Is next JS seo-friendly?

Next.js is generally considered SEO-friendly because it offers built-in SSR and SSG, which expose content in the initial HTML. It also supports dynamic metadata, image optimisation, and easy integration of structured data. However, ranking still depends on content quality and site-wide SEO signals, not just the framework.

Sources

  1. Google Search Central Primary source for Google guidance on rendering, crawling, metadata, structured data, sitemaps, and technical SEO.
  2. Google Search Central: JavaScript SEO basics Best source for how Google processes JavaScript-heavy pages and what to do for discoverability.
  3. Google Search Central: Structured data Authoritative guidance on JSON-LD and eligible rich result markup.
  4. Google Search Central: Sitemaps Defines sitemap requirements and best practices.
  5. Google Search Central: Core Web Vitals Official guidance for performance signals that commonly affect React sites.