A

Admin • 833.24K Points
Coach

Q. How many root elements can a React component return?

  • (A) Multiple
  • (B) Only one
  • (C) Zero
  • (D) As many as you want
  • Correct Answer - Option(B)
  • Views: 35
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

React components must return a single root element, which can be a div or React.Fragment.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.