Render a List with Keys

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • easy
  • Pro

You have an array of to-do items, each with an ID and some text, and you need to show them as a list. Explain how you'd render it in React, why React warns about a missing key prop, and what could go wrong if you used each item's position in the array as its key.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →