Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(JS-0417) Avoid .bind() or local functions in JSX properties /PERFORMANCE #6

Open
airbauer opened this issue Aug 25, 2023 · 0 comments
Assignees

Comments

@airbauer
Copy link
Owner

Description

Using .bind() or passing local callback functions as props to react component incurs a performance overhead. Consider using React.useCallback, or if possible, moving the callback definition outside the component. EXCEPTIONS: This rule may not apply if your react component is only rendered once, or if your application is not performance …

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/real-airbauer/noafd/issue/JS-0417/occurrences/

@airbauer airbauer self-assigned this Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant