29 ms·
That’s not a problem with “this”, but a self-inflicted problem from React’s chosen model of reusing class instances. It’s a design choice made by them and not a
by jiofih 7y ago
That’s not a problem with “this”, but a self-inflicted problem from React’s chosen model of reusing class instances. It’s a design choice made by them and not a language issue at all.
- city41 7y agoTrue, although I did mean my comment in the context of React. Hooks are basically them rolling back this choice.