Jamstack Conf Virtual is Oct. 6-7! Register for free now.

Next.js

73539 stars
14124 forks
919 issues
Home page
https://nextjs.org
Repository
vercel/next.js
Language:
JavaScript
License:
MIT
Templates:
React

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

Deploy to Netlify

Find more static site generators.