A

Admin • 833.24K Points
Coach

Q. What is the use of Fragment in React?

  • (A) To apply CSS styling
  • (B) To manage routing
  • (C) To wrap multiple elements without adding extra nodes to the DOM
  • (D) To format JSON data
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

Fragments let you group multiple elements without creating extra DOM nodes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.