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

Sorting: A split computed in render

Put in order the line from MasonryGrid that computes the columns during render, with no state:

Items to put in order

  • =
  • pins,
  • columnCount)
  • distributePins(
  • const columns

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