News for hackers. Stuff that matters.
Re:Introducing Hooks by maaaats on Thursday October 25, 2018 @04:39PM (#18304388)
"This" existed in javascript long before classes. No idea why my relevant question is down voted.
Re:Introducing Hooks by kaoD on Thursday October 25, 2018 @06:08PM (#18305014)
"this" isn't bound in functional components because there's nothing to bind it to.
Re:Introducing Hooks by kiliancs on Thursday October 25, 2018 @05:10PM (#18304617)
Not in arrow functions, which are very common and any solution should certainly contemplate them.