HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by Touche | Hacker News Reader
Parent
Full thread
Touche
·
You can just do `onChange={() => this.handler()}`.
View on HN
jotaen
·
This would create a new inline function on every render though, which potentially might cause rendering performance issues.
lilactown
·
Hardly ever.
Touche
·
The Hooks way creates a lot of inline functions on every render.
Reply on news.ycombinator.com