Q. What is the significance of keys when rendering lists in React?

  • (A) They help React identify which items changed, added, or removed
  • (B) They add accessibility features
  • (C) They are used to style list items
  • (D) They bind events to list items
πŸ’¬ Discuss
βœ… Correct Answer: (A) They help React identify which items changed, added, or removed
Explanation: Keys provide a unique identifier for list items to optimize rendering.
Explanation by: Mr. Dubey
Keys provide a unique identifier for list items to optimize rendering.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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