Is React Vite SEO friendly
A Vite React app outputs a single index.html for all routes. The body contains one root div and a script tag. That is what a crawler receives before JavaScript runs. Google crawls the raw HTML first, then queues a separate rendering pass that runs JavaScript. Rendering happens in a separate step after Google crawls the page. Many AI crawlers fetch HTML without running JavaScript. Those crawlers see a page with no title, no visible text, and no meta description. Rankings are not guaranteed by any tool, but a page with no readable content has no path to ranking.
Check What Your Site Sends Crawlers
- Open the view page source tool, enter your live URL, and read the HTML. A body with only a root div means crawlers see an empty page.
- Run the AI crawler checker to confirm GPTBot and ClaudeBot are allowed in your robots.txt.
- Search Google for an exact sentence from your page with site:yourdomain.com to see whether Google has that text indexed.
React SPA SEO: Fixes in Order
These seven fixes cover the main gaps in a Vite React SPA. Apply them in order.
Vite React SEO plugin Options by Job
Pick tools by what job they do.
- Pre-render or static generation: vite-react-ssg generates a static HTML file for each route at build time. vite-plugin-ssr supports both static generation and server rendering per route.
- Head management: React 19 renders title and meta tags inside components and hoists them into the document head. For earlier versions of React, react-helmet-async manages the document head per route.
- Sitemap: A Vite sitemap plugin generates
sitemap.xmlfrom your route list at build time. - Server rendering as a larger option: Moving public pages to a framework such as Next.js, React Router in framework mode, or TanStack Start adds server rendering, head management, and clean routing in one step. Lovable apps built from 13 May 2026 run TanStack Start with server rendering (Lovable documentation, read 19 November 2026). Older Lovable and Bolt.new apps are Vite React and need the fixes above.
React SEO without SSR
Pre-rendering at build time writes HTML for each route whose URL is fixed when the build runs. Routes with static paths, such as /about or /pricing, pre-render cleanly and give crawlers real content. Routes that depend on live data per request, such as a user profile page or a page fetching current prices from an API, cannot be pre-rendered at build time. The content for those routes is unknown until a request arrives. Those pages need server rendering to give crawlers current content. See server-side vs client-side rendering for SEO for a full comparison.
Apply These Fixes with RankBrain AI
RankBrain AI is an SEO MCP server. It connects to the AI coding tool you already use: Claude Code, Cursor, Codex, Windsurf, Cline, and others.
- Sign up at rankbrain.app and open the dashboard.
- Pick the tab for your coding tool, copy the setup prompt (your API key is already in it), and paste it into a new chat in your project. The AI writes the MCP config and AGENTS.md rule file.
- Restart the tool and confirm the server maitreya-labs-seo-mcp is connected.
After setup, run a prompt such as: "Audit the SEO of https://example.com and list the fixes." RankBrain AI reads the live site and shows the current content and the exact replacement side by side. Each fix waits for your approval before it is written to a project file. git diff shows each change. git revert undoes it. The site looks identical to visitors. Only search engines and AI assistants see the difference. Price: free for 3 days, then $5 a month, cancel anytime.
Check my site free to see what Google and AI crawlers currently read on your site.