diff --git a/docs/rules/jsx-no-bind.md b/docs/rules/jsx-no-bind.md index 686d13660b..fdeef54bd8 100644 --- a/docs/rules/jsx-no-bind.md +++ b/docs/rules/jsx-no-bind.md @@ -7,21 +7,22 @@ A `bind` call or [arrow function](https://developer.mozilla.org/en-US/docs/Web/J The following patterns are considered warnings: ```jsx -
+ ``` ```jsx -
console.log('Hello!')}>
+ console.log('Hello!')}> ``` The following patterns are **not** considered warnings: ```jsx -
+ ``` ## Rule Options ```js "react/jsx-no-bind": [, { + "ignoreDOMComponents": || false, "ignoreRefs": || false, "allowArrowFunctions": || false, "allowFunctions": || false, @@ -29,13 +30,23 @@ The following patterns are **not** considered warnings: }] ``` +### `ignoreDOMComponents` + +When `true` the following are **not** considered warnings: + +```jsx +
+ console.log("Hello!")} /> +