muacm / muacm_website

This is the repository for MUACM Community website.
http://medicaps.hosting.acm.org/
MIT License
3 stars 2 forks source link

(JS-0417) Avoid `.bind()` or Arrow Functions in JSX properties #20

Closed yashsehgal closed 3 years ago

yashsehgal commented 3 years ago

Description

A bind call or arrow function in a JSX property will create a brand new function on every single render. This is bad for performance. <!--more--> This affects performance as it may cause unnecessary re-renders if a brand new function is passed as a property to a component that uses …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/muacm/muacm_website/issue/JS-0417/occurrences/

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.