Put in order · Vibe coding with Claude Code course · Module 5: Reddit clone

Sorting: An unknown guild in the address

Order what the home page from the lesson does after you visit the address /?community=kraken:

Items to put in order

  • Reads community from searchParams
  • notFound() shows the 404 page
  • find does not find a guild with that id
  • The condition id && !selected is met
  • ?? null turns the missing result into null

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