A

Admin • 833K Points
Coach

Q. What is the benefit of using `React.Fragment`?

  • (A) It allows multiple return values from a function
  • (B) It reduces the size of the DOM by not adding extra nodes
  • (C) It is used for styling
  • (D) It provides lifecycle methods
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

React.Fragment lets you group children without adding extra DOM nodes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.