A

Admin • 833.24K Points
Coach

Q. What will happen if you forget to include a key in a list item?

  • (A) React will crash
  • (B) Nothing, it's optional
  • (C) React will throw an error
  • (D) React may render inefficiently
  • Correct Answer - Option(D)
  • Views: 26
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

Without keys, React has difficulty optimizing list rendering.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.