Q. Which of the following is true about React keys in a list?

  • (A) They can be duplicated
  • (B) They should be the index of the array always
  • (C) They must be unique among siblings
  • (D) They are optional
πŸ’¬ Discuss
βœ… Correct Answer: (C) They must be unique among siblings
Explanation: React keys must be unique among sibling elements for optimal rendering.
Explanation by: Mr. Dubey
React keys must be unique among sibling elements for optimal rendering.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
73
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate