JSX275 Documents

Single Child Fragment

When JSX contains only one element or expression, render it directly instead of wrapping it in an empty fragment. Use an empty fragment only to group multiple siblings.

Correct

<>
    <Title />
    <Content />
</>
<Field />

Incorrect

<>
    <Field />
</>

Fix

Remove the empty fragment around the single child while preserving the child and existing comments.