ReactBeginner#jsx

What are fragments and why use them?

Fragments group children without adding a DOM node, which keeps markup valid inside tables and flex/grid layouts. The short syntax is <>...</>, and the long form accepts a key.

Example
return (
  <>
    <td>Name</td>
    <td>Score</td>
  </>
);

Related Questions

1
ReactBeginner#jsx

What is conditional rendering in React?

Open
2
ReactAdvanced#errors

What is an error boundary?

Open
3
ReactIntermediate#lifecycle#hooks

How does the component lifecycle map to hooks?

Open