Skip to content

Commit

Permalink
Update docs/rules/jsx-no-bind.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
dimitropoulos and ljharb committed Jun 1, 2021
1 parent 3ec83fe commit 07e8cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-bind.md
Expand Up @@ -51,7 +51,7 @@ However, there is a [caveat with callback refs](https://reactjs.org/docs/refs-an
You can also avoid this behavior using [`createRef`](https://reactjs.org/docs/react-api.html#reactcreateref) or [`useRef`](https://reactjs.org/docs/hooks-reference.html#useref) (or [`useCallback`](https://reactjs.org/docs/hooks-reference.html#usecallback) if you have custom logic).
If you are using a simple setters (as shown below) then you may not need this rule to fire for `ref`s, and can disable it specifically for refs with `ignoreRefs`.
If you are using a simple setter (as shown below) then you may not need this rule to fire for `ref`s, and can disable it specifically for refs with `ignoreRefs`.
Examples of **correct** code for this rule, when `ignoreRefs` is `true`:
Expand Down

0 comments on commit 07e8cb5

Please sign in to comment.