jargon

Frontend & browser·JavaScript in the browser

you passed the method as a callback and it lost the object it belonged to.

this binding

Also calledthis, call-site binding

The rule that in a normal function `this` is decided by how the function is called, not where it was written. Extracting a method and passing it as a handler drops the receiver, which is why class methods get bound in the constructor or written as arrow functions. Arrow functions have no `this` of their own and take it from the enclosing scope, which is what makes them the default inside components.

Commonly confused with