From bf4c825efd8934b66cb0b1baf2afbf85a234f790 Mon Sep 17 00:00:00 2001 From: Rick Hanlon II Date: Sun, 2 Dec 2018 14:50:39 +0000 Subject: [PATCH] Remove debatable statement on perf in jsx-no-bind --- docs/rules/jsx-no-bind.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/jsx-no-bind.md b/docs/rules/jsx-no-bind.md index fdeef54bd8..e44321e79f 100644 --- a/docs/rules/jsx-no-bind.md +++ b/docs/rules/jsx-no-bind.md @@ -1,6 +1,6 @@ # No `.bind()` or Arrow Functions in JSX Props (react/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. It may also cause unnecessary re-renders if a brand new function is passed as a prop to a component that uses reference equality check on the prop to determine if it should update. +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 may cause unnecessary re-renders if a brand new function is passed as a prop to a component that uses reference equality check on the prop to determine if it should update. ## Rule Details