Skip to content

Commit

Permalink
Adds missing rule name for jsx-no-bind.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotny authored Oct 2, 2016
1 parent b464cf1 commit ac548a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/jsx-no-bind.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# No `.bind()` or Arrow Functions in JSX Props
# No `.bind()` or Arrow Functions in JSX Props (jsx-no-bind)

A `bind` call or [arrow function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions) in a JSX prop will create a brand new function on every single render. This is bad for performance, as it will result in the garbage collector being invoked way more than is necessary.

Expand Down

0 comments on commit ac548a0

Please sign in to comment.