Q. Which attribute must be used with lists in React?

  • (A) ref
  • (B) id
  • (C) key
  • (D) className
πŸ’¬ Discuss
βœ… Correct Answer: (C) key
Explanation: The key attribute helps React identify which items have changed in a list.
Explanation by: Mr. Dubey
The key attribute helps React identify which items have changed in a list.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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