Rules
no-dangerously-set-innerhtml-with-children
Full Name in eslint-plugin-react-dom
Full Name in @eslint-react/eslint-plugin
Features
🔍
Presets
domrecommendedrecommended-typescriptrecommended-type-checked
What it does
Disallows DOM element using children and dangerouslySetInnerHTML at the same time.
When using dangerouslySetInnerHTML, the content of the DOM element is set from the __html property. The content of the DOM element is completely replaced, so the children will not be rendered as expected.