You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intentional. The recommended pattern for satisfying the jsx-no-lambda rule is to bind your callback elsewhere, not inline. This is orthogonal to the jsx-no-string-ref rule.
If ref defined as lamda, tslint warn about no lambda in JSX. But ref is string attr, tslint warn about callback to ref prop.
[tslint] Lambdas are forbidden in JSX attributes due to their rendering performance impact
[tslint] Pass a callback to ref prop instead of a string literal
The text was updated successfully, but these errors were encountered: