Q. What does the 'key' prop help React identify?

  • (A) The source of the event
  • (B) The value of a form
  • (C) Which items have changed
  • (D) The root element
πŸ’¬ Discuss
βœ… Correct Answer: (C) Which items have changed
Explanation: React uses 'key' to identify which items in the list are changed, added, or removed.
Explanation by: Mr. Dubey
React uses 'key' to identify which items in the list are changed, added, or removed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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