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
Replace all the inline event handlers in the app. Inline arrow functions are a big NO NO! Use constructor binding instead. Whenever a component re-renders (And react re-renders a lot!), it creates a new arrow function every time and passes it in as the event handler. This will affect the performance of the app.
The text was updated successfully, but these errors were encountered:
nischayv
changed the title
Remove all inline arrow functions throughout the app
Remove all arrow function event handlers throughout the app
Apr 1, 2018
Replace all the inline event handlers in the app. Inline arrow functions are a big NO NO! Use constructor binding instead. Whenever a component re-renders (And react re-renders a lot!), it creates a new arrow function every time and passes it in as the event handler. This will affect the performance of the app.
The text was updated successfully, but these errors were encountered: