Hacker News new | past | comments | ask | show | jobs | submit login

This would create a new inline function on every render though, which potentially might cause rendering performance issues.



The Hooks way creates a lot of inline functions on every render.


Hardly ever.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: