Frameworks · by Vercel
Next.js
Build a React website with pages people can visit by link and server code that can fetch the data each page needs.
Think of a recipe site. Its homepage lists recipes, and each recipe needs its own address so someone can send a friend straight to dinner. Next.js organizes those pages and can load the ingredients for the recipe named in the address.
Start with two recipes and give each a page. Open one by clicking through from the homepage, then paste its address into a fresh window. Both visits should show the same recipe without anyone having to search for it.
- When to use it
- When you build a web app with accounts, saved data or many pages.
- When to skip it
- If your site is simple, with a few pages. Astro or plain HTML is lighter and easier to follow.
- What it costs
- Free and open source.
- What you need first
- Node.js, a free program that lets JavaScript run on your computer, and a terminal.
Try it
Run this in a terminal in the folder where you keep your code. It asks a few questions, then makes a starter site.
Command
npx create-next-app@latestOfficial pages
Similar options
- Astro · Build a fast, mostly text-and-image website such as a blog, portfolio, or documentation site.