HomeChallengesRepsProblemsLeaderboardTake a challenge

A List and Its Row

Every table you will ever build. One component owns the list, another owns a row, and the empty case is a real state rather than an afterthought.

Intermediate20 min on the clock5 graded checks · 100 pointsComponents That Fit TogetherPro
Graded by running your code against real cases.

What you build

  • Row({ user }) — one table row
  • UserList({ users, emptyLabel }) — a table built out of Rows
  • An empty list renders the empty label, not an empty table
  • The caption says how many there are
  • Give each row a key

Done means

The table is made of Row components, and an empty list says so in a sentence.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else. Each one runs your code; it is not a search for keywords.

  1. One row per user, with name and email+25Lists and their rows
  2. The table is built from Row+20Slots and children
  3. An empty list renders the empty state+20Lists and their rows
  4. The caption counts them+20Lists and their rows
  5. Each row has a key (read from your source)+15Lists and their rows

What it teaches

The rest of Components That Fit Together