# react/no-danger 📝 Disallow usage of dangerous JSX properties. Dangerous properties in React are those whose behavior is known to be a common source of application vulnerabilities. The properties' names clearly indicate they are dangerous and should be avoided unless great care is taken. See ## Rule Details Examples of **incorrect** code for this rule: ```jsx var React = require('react'); var Hello =
; ``` Examples of **correct** code for this rule: ```jsx var React = require('react'); var Hello =
Hello World
; ``` ## Rule Options ```js ... "react/no-danger": [, { "customComponentNames": Array, }] ... ``` ### customComponentNames Defaults to `[]`, if you want to enable this rule for all custom components you can pass `customComponentNames` as `['*']`, or else you can pass specific components name to the array. ## When Not To Use It If you are certain the content passed to dangerouslySetInnerHTML is sanitized HTML you can disable this rule.