A single-page application (SPA) is a web app that loads one HTML page and then updates the view with JavaScript as the user navigates, instead of requesting a new page from the server each time.

Definition
A single-page application is a web application that runs mostly in the browser. On the first visit the server sends a minimal HTML document plus a JavaScript bundle. From then on, the JavaScript renders screens, handles clicks and changes the URL without a full page reload, fetching only the data it needs from APIs in the background.
The result feels closer to a desktop or mobile app: transitions are quick, state such as an open panel or a half-filled form survives navigation, and the interface can respond instantly to input. SPAs are commonly built with frameworks such as React, Vue, Angular or Svelte, and they are the default shape for many dashboards, admin tools and logged-in products.

How it works
When a user opens an SPA, the browser downloads an HTML shell that often contains little more than an empty root element and script tags. The JavaScript framework boots, reads the current URL and renders the matching screen into that root element. This approach is known as client-side rendering, because the browser builds the page rather than the server.
A client-side router watches for navigation. When the user clicks a link, the router intercepts it, updates the address bar through the browser’s History API and swaps the visible components, all without asking the server for a new document. Data comes from REST or GraphQL APIs as JSON, and the framework re-renders only the parts of the screen that changed.
Because the whole app lives in the browser, SPAs usually manage application state in memory, sometimes with a dedicated state library. Large SPAs split their code into chunks that load on demand, so users do not download every screen up front. Many modern frameworks also mix in server rendering for the first load, which blurs the line between SPA and traditional sites.
Keep learning
Put it into practice
Fast, secure and accessible web applications built with React and Next.js, designed for real users and real traffic.
Explore serviceMulti-tenant SaaS products engineered for onboarding, billing, security and growth, from MVP to scale.
Explore serviceResearch-led product design, prototypes and design systems that make complex software clear, usable and ready to build.
Explore serviceFAQ
Not inherently, but they need care. Search engines can render JavaScript, though rendering may be delayed and less reliable than reading HTML directly. For public pages that must rank, teams often add server-side rendering or static generation so the content is in the initial HTML, and keep pure client-side rendering for logged-in areas.
React is a library for building user interfaces, not an application type. It is often used to build SPAs, but it can also render on the server or generate static pages, particularly through frameworks built on top of it. The same is true of Vue, Angular and Svelte.
A multi-page application, where each navigation requests a new HTML document from the server. Traditional websites and many content sites work this way. Plenty of modern products are hybrids: server-rendered pages for the first view, then client-side navigation once the app is loaded.
Talk to a solution architect about where it fits in your roadmap.
