Put in order · Vibe coding with Claude Code course · Module 14: Pinterest clone

Sorting: Appending pins to the freshest list

Put in order the line that appends new pins to the freshest list, not to a stale value from the closure:

Items to put in order

  • ...page.pins]
  • [...prev,
  • setPins(
  • );
  • (prev) =>

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