designwithfocus

JavaScript & front end

Next.js vs WordPress: React Routes Beside a PHP CMS

By Design With Focus Team 7 min read
Two site maps, one a tree of route files and one a stack of pages in a CMS

Short answer

Next.js is a React framework that maps files to routes, and WordPress is a PHP and MariaDB publishing system licensed under the GPL. The Next.js installation docs require Node.js 20.9 and mention Next.js 16 when they say the production build no longer runs the linter by itself. The WordPress about page, last modified 22 October 2026, does not print a WordPress version. It does say the project started in 2003 and runs millions of sites.

Last verified against the sources listed below.

Key takeaways

  • Next.js docs call it a React framework for full-stack apps, with an App Router and a Pages Router.
  • The App Router uses React canary builds that include the stable React 19 changes. The Pages Router uses the React version in package.json.
  • create-next-app defaults named on the install page include TypeScript, Tailwind CSS, ESLint, the App Router, and Turbopack.
  • Minimum Node.js on that page is 20.9. Supported browsers listed there start at Chrome 111, Edge 111, Firefox 111, and Safari 16.4.
  • WordPress.org says WordPress is PHP and MariaDB, GPL version 2 or later, started in 2003 by a fork of b2/cafelog.

Next js vs wordpress compares a React framework with a PHP publishing system. Next.js, in its own docs, builds full-stack applications from React components and file routes. WordPress, on its about page, is the GPL project that started in 2003 and runs on PHP and MariaDB.

What WordPress is used for covers the publishing side. The framework side is a different runtime, which is the point of the comparison.

What does Next.js say it is?

It is a React framework for full-stack web applications, with two routers and file-based routes.

The Next.js docs say you use React components for the interface and Next.js for extra features and for lower-level tools such as bundlers and compilers. There are two routers.

The App Router is the newer one and supports React Server Components. The Pages Router is the original and is still supported.

A dropdown in the docs switches between them.

React versions are not shared. The App Router uses React canary releases that are built in, including all the stable React 19 changes and newer features still being validated in frameworks. The Pages Router uses the React version in the project’s package file. The docs assume you are comfortable with HTML, CSS, JavaScript, and React before you start.

React’s learn page says a React app is made of components, and a component is a JavaScript function that returns markup. Component names start with a capital letter.

You pass a CSS class with className. That is the UI model Next.js is sitting on.

JavaScript is the language those components are written in.

How do you start a Next.js app?

You run create-next-app, with Node.js 20.9 or newer, and the dev server listens on port 3000.

The installation guide shows npx create-next-app@latest, and the same command for pnpm, yarn, and bun. A —yes flag skips prompts and uses saved preferences or defaults.

The page says that default setup enables TypeScript, Tailwind CSS, ESLint, the App Router, and Turbopack, with the import alias @/*. The minimum Node.js version is 20.9.

Operating systems listed are macOS, Windows including WSL, and Linux.

Browsers on that page are Chrome 111 or newer, Edge 111 or newer, Firefox 111 or newer, and Safari 16.4 or newer. The minimum TypeScript version named there is 5.1.0.

Turbopack is the default bundler for next dev and next build. Webpack is the opt-in, through a webpack flag.

Starting with Next.js 16, next build no longer runs the linter automatically. You run ESLint or Biome from a script instead.

Routes come from files. You create an app directory, a layout file that contains the document and body tags, and a page file for the home page.

Both show when a visitor opens the root path. The guide’s dev server is at local port 3000.

Static files can live in a public directory and are referenced from the root path, so public/profile.png is requested as /profile.png. The guide also shows an Image component with a width and height of 100 in its example.

Those 100s are the example, not a required image size.

What does WordPress say it is?

It is a GPL publishing system from 2003, built on PHP and MariaDB, used by millions of sites.

The WordPress about page says Mike Little and Matt Mullenweg started WordPress as a fork of b2/cafelog. Today it is built on PHP and MariaDB and licensed under the GPL, version 2 or later.

The page says it is the platform of choice for millions of sites. People with limited technical experience can use it as it ships, and others can customize it.

The page’s last modified date is 22 October 2026. It does not print a WordPress version number.

The GPL freedoms on that page are numbered from zero: run the program for any purpose, study and change it, redistribute it, and distribute your modified versions. The project describes itself as open source software aimed at publishing, with an emphasis on accessibility, performance, security, and ease of use.

PHP’s manual says PHP is a general-purpose scripting language especially suited to web development and able to be embedded in HTML. The code runs on the server.

The browser receives the generated result, not the PHP source. PHP can be procedural, object-oriented, or both.

A server-side setup needs the PHP parser, a web server, and a browser. That is the language family WordPress is in.

It is not the React component model.

How do the two sit side by side?

One maps routes to React files and names Node.js 20.9. The other is a PHP and MariaDB application with no version printed on its about page.

Question Next.js, from the docs WordPress, from the about page
What it is A React framework for full-stack web applications A publishing system, GPL version 2 or later
Language the pages name JavaScript and React. The App Router includes stable React 19 changes PHP and MariaDB
How pages appear Files in the app directory. layout and page files render the root The about page does not describe a file router. It describes software you can use as it ships or customize
Version this comparison can cite Next.js 16 is named for the lint change. Node.js 20.9 is the minimum No WordPress version on the about page. Started in 2003
Local run, as documented Dev server on port 3000 Not described on the about page
Defaults on a new app TypeScript, Tailwind CSS, ESLint, App Router, Turbopack when you accept defaults Not a checklist on the about page. The pitch is minimum setup

The empty cells are intentional. The about page does not document a port, a file router, or a current WordPress release.

Filling them from memory would invent a spec. PHP’s manual supplies the server-side behavior.

It does not supply a WordPress release number either.

Which one matches the project?

Use Next.js when the interface is React and you want file routes, the App Router, and the Node.js floor the install page states. Use WordPress when you want the GPL publishing system the about page describes, including people who are not developers.

The install page is explicit about the skills it expects: HTML, CSS, JavaScript, and React. If those are the tools you are already writing, the create-next-app path matches.

If the need is a site that non-developers can publish, the about page is the one that says WordPress can be used out of the box and still customized. The two can even meet: the Next.js defaults include Tailwind CSS, and WordPress remains a PHP application.

They are not interchangeable runtimes.

Images are shared baggage. An image compressor shrinks a file before it lands in a public directory or a media library.

The Next.js guide shows static files served from the root path. It does not set a byte budget.

Compression is a file step, not a reason to pick one project over the other.

Frequently asked questions

Does the Next.js install page name a version number?

It names Next.js 16 in one specific sentence: starting with that version, the production build no longer runs the linter on its own. You run the linter from a package script instead. The same page does not print a banner that says a single version is current. It tells you to install the next, react, and react-dom packages at latest, and it documents a minimum of Node.js 20.9. Treat 16 as the version that sentence is about.

What React does the App Router use?

The docs say the App Router uses React canary releases that are built in. Those builds include all the stable React 19 changes, plus newer features still being checked inside frameworks. You still declare react and react-dom in the project file so other tools can see them. The Pages Router does not follow that canary rule. It uses the React version you installed in the project. The two routers are both supported.

What version of WordPress is current?

The about page opened for this article does not say. It says WordPress started in 2003 when Mike Little and Matt Mullenweg forked b2/cafelog, that it is built on PHP and MariaDB, and that it is licensed under the GPL, version 2 or later. The page was last modified on 22 October 2026. It also says the software is the platform of choice for millions of sites. A version number would have to come from a download page, which is not where this comparison got its WordPress facts.

Where do routes live in a Next.js app?

In the files you create. The install guide says the App Router uses the file system, so the shape of the app directory is the shape of the routes. A root layout file is required and must include the document and body tags. A page file in that folder is the home page. Both render when someone visits the root address. The development server in the examples is on local port 3000. Forgetting the layout does not brick the app: the dev server can create that file.

Can WordPress run without PHP?

Not according to the about page, which says WordPress today is built on PHP and MariaDB. PHP's own manual describes PHP as a general-purpose scripting language suited to the web and able to be embedded in HTML. The code runs on the server, and the browser receives the result rather than the PHP source. That is a different runtime from Next.js, where the UI is React components written in JavaScript. The two projects are not skins on the same language.

Sources