News for hackers. Stuff that matters.
Re:What does ‘that = this’ in JavaScript mean? by tabeth on Saturday April 08, 2017 @05:24PM (#14069115)
Is it a poor pattern to use #bind a lot instead of this or that? I tend to put most of the code in procedures like functions and bind it to whatever context I need, if not the regular this.
Re:What does ‘that = this’ in JavaScript mean? by OSButler on Saturday April 08, 2017 @05:31PM (#14069150)
If you're using React and you're not using arrow functions, then it's very common to see bind() references.