Closed huashiyiqike closed 7 years ago
I found that the performance impact may not even be the real issue this would be helpful with, but rather TypeScript's lenient typing of bind (bind(this: Function, thisArg: any, ...argArray: any[]): any;
), which results in parameter-mismatches not being caught.
@tp Great point! I didn't notice that, here is the link https://basarat.gitbooks.io/typescript/content/docs/tips/bind.html
will be available in v2.6.0
To circumvent re-rendering by creating a new function each time when binding this to functions
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md