React ________ allow you to return multiple elements from a component without adding a DOM element.

  • Components
  • Fragments
  • Hooks
  • Keys
React Fragments allow you to return multiple elements from a component without adding a DOM element like a div. They are a lightweight way to group multiple elements without introducing unnecessary nodes in the DOM. While keys, components, and hooks are all important concepts in React, they are not directly related to this specific behavior.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *