← React Beginner Questions - Set 7 Q68

What is the purpose of React.Fragment?

React Beginner Questions - Set 7

Example

function Cells() {
  return (
    <>
      <td>Name</td>
      <td>Price</td>
    </>
  );
}

// No wrapper element: the fragment disappears from the DOM

What to notice

← Back to the question list