DEV Community

Discussion on: 10 Things NOT To Do When Building React Applications

Collapse
 
aindong profile image
Alleo Indong

11th -> Creating functions in render
Every time your app did re-render those functions are also recreated every time... that is why we have React Hooks now.