React — Fragments in React
React Fragments let you group multiple elements without adding an extra DOM node.
This is useful when returning multiple elements from a component without wrapping them in a <div>
.
import React from 'react';
function TableRow() {
return (
<>
<td>John</td>
<td>Doe</td>
</>
);
}