A

Admin • 833.24K 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: 31
  • 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.