JSX275 Documents

Fragment Child Lines

Place empty fragment tags on lines separate from their children. Put <>, every child, and </> on separate lines so fragment boundaries and sibling elements remain explicit.

Correct

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

Incorrect

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

Fix

Move the empty fragment opening and closing tags onto lines separate from their children while preserving the children and existing comments.