---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: inJsx.jsx
---
# Input
```jsx
<>
children
children
>
```
# Diagnostics
```
inJsx.jsx:2:10 lint/security/noDangerouslySetInnerHtmlWithChildren ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid passing both children and the dangerouslySetInnerHTML prop.
1 │ <>
> 2 │ children
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 │
4 │
i This is the source of the children prop
1 │ <>
> 2 │ children
│ ^^^^^^^^
3 │
4 │
i Setting HTML content will inadvertently override any passed children in React
```
```
inJsx.jsx:3:10 lint/security/noDangerouslySetInnerHtmlWithChildren ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid passing both children and the dangerouslySetInnerHTML prop.
1 │ <>
2 │ children
> 3 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 │
5 │ children
i This is the source of the children prop
1 │ <>
2 │ children
> 3 │
│ ^^^^^^^^^^^^^^^^^^^^^
4 │
5 │ children
i Setting HTML content will inadvertently override any passed children in React
```
```
inJsx.jsx:4:10 lint/security/noDangerouslySetInnerHtmlWithChildren ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid passing both children and the dangerouslySetInnerHTML prop.
2 │ children
3 │
> 4 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5 │ children
6 │
i This is the source of the children prop
2 │ children
3 │
> 4 │
│ ^^^^^^^^^^^^^^^^^^^^^^^
5 │ children
6 │
i Setting HTML content will inadvertently override any passed children in React
```
```
inJsx.jsx:5:14 lint/security/noDangerouslySetInnerHtmlWithChildren ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid passing both children and the dangerouslySetInnerHTML prop.
3 │
4 │
> 5 │ children
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 │
7 │ >
i This is the source of the children prop
3 │
4 │
> 5 │ children
│ ^^^^^^^^
6 │
7 │ >
i Setting HTML content will inadvertently override any passed children in React
```
```
inJsx.jsx:6:14 lint/security/noDangerouslySetInnerHtmlWithChildren ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Avoid passing both children and the dangerouslySetInnerHTML prop.
4 │
5 │ children
> 6 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 │ >
i This is the source of the children prop
4 │
5 │ children
> 6 │
│ ^^^^^^^^^^^^^^^^^^^^^
7 │ >
i Setting HTML content will inadvertently override any passed children in React
```