If you are planning a business website or web app, you will hear both "React" and "Next.js". They are closely related, but they are not the same thing, and the choice affects SEO, speed, and how easy your site is to maintain.
We recently moved our own website from a client-side React app to Next.js, so we have seen the difference first-hand. This guide explains it in plain terms.
What is the difference?
React is a JavaScript library for building user interfaces. It is excellent for interactive pages, but it does not decide how your pages are delivered, routed, or optimised for search engines.
Next.js is a framework built on top of React. It adds the missing pieces: routing, server-side rendering, static generation, image optimisation, metadata handling, and more. You still write React components, but Next.js handles how the site is built and served.
An easy comparison: React is the engine; Next.js is the whole car.
How a plain React site works
A typical React app (for example, one built with Vite or Create React App) is a single-page application. The browser first receives a nearly empty HTML page and a bundle of JavaScript. The JavaScript then builds the page content on the user's device.
This is called client-side rendering. It works well for apps behind a login, but it has downsides for public websites:
- The first thing a crawler sees can be an empty page until the JavaScript runs.
- Page titles, descriptions, and social previews need extra tooling to set per page.
- First load can be slower, because the browser must download and run JavaScript before showing content.
How Next.js works
Next.js can render pages on the server or at build time, so the browser and search engines receive complete HTML straight away.
- Static generation. Pages are built in advance and served quickly. Ideal for marketing pages and blogs.
- Server-side rendering. Pages are built on request when content changes often.
- Metadata built in. Titles, descriptions, canonical URLs, and social images are set per page and included in the HTML.
- Automatic optimisations. Image, font, and code-splitting help speed.
SEO: why it matters
Google can run JavaScript, but relying on it is slower and less predictable than receiving ready HTML. For a business website that depends on search traffic, delivering content in the first response is a clear advantage.
With Next.js you can easily provide:
- Unique titles and descriptions for every page
- Canonical URLs and sitemaps
- Structured data (schema markup)
- Fast-loading pages, which supports Core Web Vitals
- Social sharing images for each page
Performance
Server-rendered or static pages usually show content sooner, because the browser does not wait for JavaScript to build the page. Next.js also helps by splitting code so each page loads only what it needs.
Side-by-side comparison
| React (client-side app) | Next.js | |
|---|---|---|
| Rendering | In the browser | Server or build time (and client where needed) |
| SEO out of the box | Needs extra work | Strong |
| Per-page metadata | Needs extra libraries | Built in |
| Routing | Add a library | Built in |
| Image optimisation | Manual | Built in |
| Hosting | Any static host | Static or server hosting |
| Best for | Apps behind login, dashboards | Marketing sites, blogs, e-commerce, SaaS with public pages |
When to choose plain React
- Internal tools and dashboards behind a login, where SEO does not matter
- Very simple single-page apps
- When you only need a front end and your back end is separate
When to choose Next.js
- Business and marketing websites that depend on search
- Blogs and content sites
- E-commerce and landing pages
- SaaS products with public pages and an app section
- Sites where speed and Core Web Vitals matter
Can I migrate from React to Next.js?
Yes, and it can be done without changing the design. Components, styling, and most code carry over. The work is in routing, metadata, server versus client components, and deployment. A careful migration keeps the look identical while improving SEO and speed.
Things to consider
- Hosting. Next.js can run on platforms such as Vercel or on containers in the cloud, such as Cloud Run.
- Complexity. It has more concepts than plain React, such as server and client components.
- Team skills. Make sure your team or partner knows it well.
The bottom line
For a public business website that needs to rank in search and load fast, Next.js is usually the better choice. For an internal app behind a login, plain React is often enough.
If you are planning a website or app, see how we approach it in our custom software vs off-the-shelf guide and our mobile app process.
How to migrate from a React single-page app to Next.js
If you already have a React site, you do not need to start over. Moving to Next.js is mostly a matter of reorganising what you have, which is how we moved our own website. A careful migration keeps the design identical.
Step 1: Audit your current app
List your routes, components, and libraries. Note anything that depends on the browser (window, localStorage), because it needs care on the server. Record how metadata is handled today, for example with a head-management library.
Step 2: Set up Next.js alongside your code
Create the Next.js configuration and move your components and styles across. Keep your styling system (such as Tailwind and shared CSS), so the design does not change.
Step 3: Convert routing
Replace your router with Next.js file-based routes. Each page becomes a file in the app folder. Shared layout (header, footer, global providers) goes into a root layout.
Step 4: Move metadata to the server
Titles, descriptions, canonical URLs, and social images are defined per page and rendered into the HTML. This is where most of the SEO benefit comes from. Add a sitemap, a robots file, and structured data.
Step 5: Mark interactive components
In the App Router, components that use state, effects, or browser features need a "use client" marker. Components that only display content can stay on the server.
Step 6: Handle images and fonts
Use the framework's image component for automatic sizing and lazy loading, and load fonts in a way that avoids layout shifts.
Step 7: Test visually and technically
Compare old and new pages side by side on desktop and mobile. Check that titles, descriptions, and canonical tags are present in the raw HTML. Check speed with a tool such as Lighthouse.
Step 8: Deploy and redirect
Deploy to a host that supports Next.js, set up redirects for any changed URLs (and a single preferred domain), submit the new sitemap, and monitor Search Console for errors.
Hosting options
Next.js can run in several ways:
- A platform built for Next.js, which is the simplest to start
- Containers on a cloud provider such as Google Cloud Run, which gives control and scales with traffic (this is what we use)
- A Node server on a virtual machine
- Static export, only if your site needs no server features
Choose based on your team's skills, expected traffic, and budget. Consider features you may need later, such as scheduled content and regeneration of pages.
Common migration pitfalls
- Using browser-only code on the server. Guard it or move it into client components.
- Forgetting redirects, so old URLs return errors and lose search visibility
- Duplicate versions of the site (with and without www, or http and https) without a single canonical version
- Missing metadata on some pages
- Large client bundles from marking everything as a client component
- No monitoring after launch
When migration is not worth it
If your React app sits behind a login and does not need search traffic, a migration may add complexity without much gain. Do it when SEO, speed, or public content matter. If you want to be found by AI assistants as well, see our guide to getting recommended by ChatGPT and AI search.
Frequently asked questions
Will my website look different after moving to Next.js?
It does not have to. Components and styles carry over, so a careful migration keeps the design identical while changing how pages are delivered.
Is Next.js better for SEO than React?
For public websites, usually yes, because pages arrive as complete HTML with their metadata. A client-rendered React app can be indexed, but it relies on search engines running your JavaScript.
How long does a migration take?
It depends on the size of the site and the number of custom components. A small marketing site can be migrated in days, while a large app takes longer.
Do I need a developer to migrate?
Yes, for most sites. It involves routing, rendering, and deployment decisions. A good partner will also protect your existing search rankings.
Does Next.js cost more to host?
It can cost more or less depending on the hosting setup. Static pages are cheap to serve, while server rendering and dynamic features use more resources. Plan for traffic and caching.
Talk to us about your website
We build and migrate fast, search-friendly websites and web apps with Next.js and React. See our software development services, or book a free consultation.
