# Next.js

> A framework built on React. It adds routing, server pages and static pages.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** NextJS, Next

## Think of it like

Think of it like a house kit built around React bricks. The walls, doors and pipes come ready.

## Definition

Next.js is a framework built on top of React. It is for making full websites and web apps. It adds what React leaves out: routing from the folder layout, server-side rendering, static pages and server code. Each page can be built on the server, ahead of time, or in the browser. It handles bundling and image sizing too. Many teams start new React projects with it.

## Example

Next.js is made by the company Vercel and was first released in 2016. Jack builds his shop with it, and each product page is pre-built for speed.

## Example code

```console
$ npx create-next-app@latest my-shop
```

This starts a new Next.js project in a folder called my-shop.

## Why it matters

It turns React into a full site toolkit. Pages are fast and easy for search engines to read.

## Common mistake

Running code that needs a browser on the server, like reading window. The server render then crashes.

## Three principles

- **React plus the rest.** Routing, rendering, server code.
- **Pick per page.** Server, static or browser.
- **Folders are routes.** The file layout is the map.

## Related terms

- [React](https://learn.benibix.com/term/development/react)
- [Server-Side Rendering (SSR)](https://learn.benibix.com/term/development/server-side-rendering)
- [Static Site Generation (SSG)](https://learn.benibix.com/term/development/static-site-generation)
- [Web Routing](https://learn.benibix.com/term/development/routing)

---

Source: https://learn.benibix.com/term/development/nextjs
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
