Fragments: Short Syntax

class Columns extends React.Component {
  render() {
    return (
      <>
        <td>Hello</td>
        <td>World</td>
      </>
    );
  }
}

There is a new, shorter syntax you can use for declaring fragments. It looks like empty tags.

You can use <></> the same way you’d use any other element except that it doesn’t support keys or attributes.

Related concepts

Short Syntax

Fragments: Short Syntax — Structure map

Clickable & Draggable!

Fragments: Short Syntax — Related pages: