A

Admin • 802.91K Points
Coach

Q. What happens if you use the same key for elements in a list?

  • (A) React warns but works fine
  • (B) Only the first element renders
  • (C) Unexpected behavior may occur
  • (D) Nothing happens
  • Correct Answer - Option(C)
  • Views: 6
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin
Using non-unique keys can cause rendering issues in lists.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.