Skip to content

5

Set up pages

If you’re continuing from the previous lesson, you can skip this page.

Download Starter Code (Optional)

If you’re NOT continuing from the previous lesson, you can download, install, and run the starter code for this lesson below. This sets up a nextjs-blog directory such that it’s identical to the result of the previous lesson.

Again, this is NOT necessary if you’ve just finished the previous lesson.

npx create-next-app@latest nextjs-blog --use-npm --example "https://github.com/vercel/next-learn/tree/main/basics/navigate-between-pages-starter"

Then follow the instructions from the command output (cd into the directory and start the development server).

You've Completed Chapter 5

Next Up

6: Pages in Next.js