jsx-no-children-prop
NOTE: this rule is included the following rule sets:
recommended
react
jsx
fresh
Enable full set in
deno.json
:{ "lint": { "tags": ["recommended"] // ...or "react", "jsx", "fresh" } }
Enable full set using the Deno CLI:
deno lint --tags=recommended # or ... deno lint --tags=react # or ... deno lint --tags=jsx # or ... deno lint --tags=fresh
Pass children as JSX children instead of as an attribute.
Invalid:
<div children="foo" />
<div children={[<Foo />, <Bar />]} />
Valid:
<div>foo</div>
<div><Foo /><Bar /></div>