arrow_backBACK TO DRILLS
Blue Beltreconciliation-keyslockPREMIUM

Index-as-Key Is Only Safe for Static Lists When No Stable ID Exists

An API response contains an array of objects with no unique identifier field, and no combination of properties is guaranteed unique across items. A developer renders the list using the array index as the key prop.

Under what condition is using the array index as a key acceptable here?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.