DEV Community

Discussion on: Why custom react hooks could destroy your app performance

Collapse
 
raibtoffoletto profile image
Raí B. Toffoletto

Nice article. 🎉 But I Never thought about putting rendered components inside hooks like your modal. For me they were always a way eiyher to access context or reuse logic.

Collapse
 
adevnadia profile image
Nadia Makarevich

Good, then you don't have to fix them :D Creating components in render is usually terrible. It's only okay for something like modals, when we drop the DOM after it's closed.