Hacker GitHub

← All repos

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

Mentions per year 4 mentions · busiest year 2018 (2)
20082026
  1. …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
  2. …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
  3. …(usually React) but just the same you might appreciate my favourite and most-abused decorator: https://github.com/andreypopp/autobind-decorator
  4. …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…