You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule helps prevent problems caused by using children and the dangerouslySetInnerHTML prop at the same time.
React will throw a warning if this rule is ignored.
Rule Details
Examples of incorrect code for this rule:
<divdangerouslySetInnerHTML={{__html: "HTML"}}>
Children
</div><HellodangerouslySetInnerHTML={{__html: "HTML"}}>Children</Hello>
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
This rule helps prevent problems caused by using children and the dangerouslySetInnerHTML prop at the same time.
React will throw a warning if this rule is ignored.
Rule Details
Examples of incorrect code for this rule:
Examples of correct code for this rule:
The text was updated successfully, but these errors were encountered: