next/link: Fast, Client-Side Navigation
Source: nextjs.orgbeginner
next/link is an enhanced `<a>` tag for fast, client-side page transitions, preserving the SPA feel. It automatically prefetches linked pages for instant loading.
The `next/link` component creates a fast, Single-Page App (SPA) experience by replacing the standard `<a>` tag for internal navigation, preventing jarring full-page reloads. Use it for all internal routes, like in a nav bar. It automatically prefetches linked pages when they enter the viewport, making navigation feel instant. The common footgun is using a plain `<a href="...">` for internal links, which forces a slow server round-trip and breaks the SPA feel.
Read the original → nextjs.org
- #next.js
- #react
- #routing
- #frontend
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.