Re:Introducing Hooks
by Touche on Thursday October 25, 2018 @04:21PM
(#18304247)
You can just do `onChange={() => this.handler()}`.
[ Parent
| on HN ]
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.