MCQs>IT & Programming>React.js>You are rendering a list with React when this warning appears in the console: "Warning: Each child in a list should have a unique 'key' prop." How do you fix this issue?
React.js MCQs
You are rendering a list with React when this warning appears in the console: "Warning: Each child in a list should have a unique 'key' prop." How do you fix this issue?
Answer
Correct Answer: When iterating over the list items, add a unique property to each list item.
Explanation:
Note: This Question is unanswered, help us to find answer for this one