Skip to main content

Next.js

Next.js is a minimalistic framework for server-rendered React applications as well as statically exported React apps.

Install

It's easy to install

npm install --save next react react-dom

Build

Add a build script

{
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
}
}

Run

After that, the file-system is the main API. Every .js file within the automatically created pages directory becomes a route that gets automatically processed and rendered.

Example

Creating a website only takes a minute. Examples