Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can just do `onChange={() => this.handler()}`.


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: