---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: componentFragment.jsx
---
# Input
```jsx
import { Suspense } from "react";
import { Comp } from "./components/Comp";
export function Component() {
return (
>}>
Hi
>} />
);
}
```
# Diagnostics
```
componentFragment.jsx:7:27 lint/complexity/noUselessFragments ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid using unnecessary Fragment.
5 │ return (
6 │
> 7 │ >}>
│ ^^^^^
8 │ Hi
9 │
i A fragment is redundant if it contains only one child, or if it is the child of a html element, and is not a keyed fragment.
```
```
componentFragment.jsx:11:19 lint/complexity/noUselessFragments ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid using unnecessary Fragment.
9 │
10 │
> 11 │ >} />
│ ^^^^^
12 │
13 │ );
i A fragment is redundant if it contains only one child, or if it is the child of a html element, and is not a keyed fragment.
```