Skip to content
FLAVIO COPES
flaviocopes.com

The Next.js Guide

By

Next.js is the most popular React framework. Learn routing, data fetching, API routes and deployment with this curated guide to the best tutorials.

~~~

Next.js is a React framework. It gives you everything React doesn’t: routing, server-side rendering, API endpoints, image optimization, and a production build system.

It’s the most popular way to build React applications today. If you know React and want to ship real projects, Next.js is the natural next step.

This page is your starting point for Next.js on this site. I organized the best posts into a learning path, then grouped the rest by theme so you can find what you need.

Where to start

Follow these in order if you’re new to Next.js:

  1. How to install Next.js gets your first project running
  2. Linking two pages in Next.js using Link covers client-side navigation
  3. Dynamic content in Next.js with the router shows how to build pages from dynamic data
  4. How to use the Next.js Router goes deeper into routing
  5. How to use Next.js API Routes lets you build backend endpoints inside the same project
  6. View source to confirm SSR is working in Next.js helps you understand what server-side rendering actually does

If you’re wondering how Next.js compares to the alternatives, read Next.js vs Gatsby vs create-react-app.

Routing and navigation

The router is the heart of Next.js. These posts cover the patterns you’ll use constantly:

Data and rendering

How to feed data to your pages, and how to control where code runs:

Building real features

Practical recipes for things every app needs:

Fixing common errors

Next.js errors can be cryptic. These posts cover the ones I hit most often:

Going to production

When it’s time to ship:

Go deeper

For a structured walkthrough of the framework, download the free Next.js Pages Router Handbook.

Next.js builds on React, so solid React fundamentals pay off double here. That’s what the React Masterclass gives you.

Everything I wrote about Next.js is in the next tag.

Tagged: Next.js · All topics
~~~

Related posts about next: