A

Admin • 802.91K Points
Coach

Q. What does the key prop do in React lists?

  • (A) It sets the list style
  • (B) It uniquely identifies elements for efficient updates
  • (C) It adds a password to components
  • (D) It defines accessibility
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
Keys help React identify which items have changed, been added, or removed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.