πŸ“Š React Js
Q. What is the primary purpose of the React key prop?
  • (A) To uniquely identify elements in a list for efficient re-rendering
  • (B) To add CSS styles
  • (C) To bind event handlers
  • (D) To pass data to child components
πŸ’¬ Discuss
βœ… Correct Answer: (A) To uniquely identify elements in a list for efficient re-rendering

Explanation: The key prop helps React identify which items have changed, are added, or removed.

Explanation by: Mr. Dubey
The key prop helps React identify which items have changed, are added, or removed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
65
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate