Skip to content
RED SAGSkills
easy5 pts · first answer countsreactstate-management

Keys for rows loaded from an API

A React list renders comments from your API using key={index}. When a user deletes the first comment, the half-typed reply in row 2 suddenly appears under a different comment. What is the fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions