A

Admin • 833K Points
Coach

Q. What happens if you try to render an array in JSX?

  • (A) It throws an error
  • (B) Only the first element renders
  • (C) All elements render correctly
  • (D) It ignores the array
  • Correct Answer - Option(C)
  • Views: 28
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

JSX can render arrays of elements as long as each has a unique key.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.