26 ms·
Also you can't really try to protect JavaScript developers from understanding this. It's a fundamental part of the language.
by pier25 7y ago
Also you can't really try to protect JavaScript developers from understanding this. It's a fundamental part of the language.
- williamdclt 7y agoDisagree. I understand `this`, but I very, very rarely encounter situations where it doesn't mean the same thing as Java's `this`. When you work on a full-React codebase, it just doesn't really happen. We used to have weird `this` behaviour on event handlers, but arrow functions and hooks fixed this. Not saying it's good or bad, just an observation
- pier25 7y agoRight, but without understanding this one doesn't really understand arrow functions either.