Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Touche
on Oct 25, 2018
|
parent
|
context
|
favorite
| on:
Introducing Hooks
You can just do `onChange={() => this.handler()}`.
jotaen
on Oct 25, 2018
[–]
This would create a new inline function on every render though, which potentially might cause rendering performance issues.
Touche
on Oct 29, 2018
|
parent
|
next
[–]
The Hooks way creates a lot of inline functions on every render.
lilactown
on Oct 25, 2018
|
parent
|
prev
[–]
Hardly ever.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: