From e7a838e055210be18ecfbf4709d1853ab8b855ed Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Tue, 30 May 2017 21:19:49 +0200 Subject: [PATCH] Update jsx-no-bind.md --- 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 1fad990f08..609b0f5e21 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. +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. ## Rule Details