Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: loading.tsx and Suspense

How does the loading.tsx file differ from your own <Suspense> around PhotoGrid?

Answer options

  • loading.tsx covers the whole page of the route folder, and Suspense only the piece it wraps
  • loading.tsx works only in the browser, and Suspense only on the server
  • Suspense shows errors, and loading.tsx the loading state
  • Not at all, they are two names of the same mechanism in different Next.js versions

You can check the correct answer by solving this task in the CodeWorlds game.