Q. What is the role of a key in a list of elements?

  • (A) To apply styles
  • (B) To identify which items changed
  • (C) To improve performance
  • (D) To bind events
πŸ’¬ Discuss
βœ… Correct Answer: (B) To identify which items changed
Explanation: Keys help React identify which items have changed, are added, or removed.
Explanation by: Mr. Dubey
Keys help React identify which items have changed, are added, or removed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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