A

Admin • 833K Points
Coach

Q. What is the correct syntax to create a React Fragment?

  • (A) <> ... </>
  • (B) <fragment> ... </fragment>
  • (C) <React.Fragment> ... </React.Fragment>
  • (D) Both option1 and option3
  • Correct Answer - Option(D)
  • Views: 19
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

You can use the shorthand <> or the full <React.Fragment> syntax.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.