News for hackers. Stuff that matters.
Re:Introducing Hooks by Touche on Thursday October 25, 2018 @04:21PM (#18304247)
You can just do `onChange={() => this.handler()}`.
Re:Introducing Hooks by jotaen on Thursday October 25, 2018 @04:44PM (#18304428)
This would create a new inline function on every render though, which potentially might cause rendering performance issues.
Re:Introducing Hooks by Touche on Monday October 29, 2018 @08:50AM (#18327041)
The Hooks way creates a lot of inline functions on every render.
Re:Introducing Hooks by lilactown on Thursday October 25, 2018 @07:45PM (#18305606)
Hardly ever.