andreypopp/autobind-decorator
View on GitHub ↗ ★ 1,444 JavaScript
Decorator to automatically bind methods to class instances
4 mentions on Hacker News by 3 people: 0 stories, 4 comments · first 2017-06-13 · latest 2019-02-20
20082026
-
…JS. They are a bad thin non-fitting abstraction over JS prototypes. People keep trying to fix them: https://github.com/andreypopp/autobind-decorator
comment by dmitriid · 2019-02-20 · in I love React Hooks -
…the newer decorators feature which drifts ever closer to Java-like syntax to some peoples' chagrin. https://github.com/andreypopp/autobind-decorator
comment by 52-6F-62 · 2018-04-04 · in JavaScript: prototype vs. class -
…(usually React) but just the same you might appreciate my favourite and most-abused decorator: https://github.com/andreypopp/autobind-decorator
comment by 52-6F-62 · 2018-01-29 · in Polymer 2.4: Paving the way for 3.0 and TypeScript support -
…React HMR if you're using that. If you can use decorators I highly recommend autobind-decorator: https://github.com/andreypopp/autobind-decorator Also I think you're using a TypeScript-specific `private` syntax there which likely changes…
comment by jbrantly · 2017-06-13 · in Learning Node.js and React while building a product