Next.js 16 · Routing and files

Show a loading state

A loading.tsx next to a page is shown while the page streams in.

export default function Loading() {
  return <p>Loading...</p>;
}

Official Next.js 16 documentation

More routing and files commands

All routing and files commands · Next.js 16 cheatsheet

Was this page helpful?