ishaanbedi/woyage

(JS-0417) Avoid `.bind()` or local functions in JSX properties

Opened this issue · 0 comments

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 are 29 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/ishaanbedi/woyage/issue/JS-0417/occurrences/