gaearon/autobind-decorator — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2015-08-23
Fix React component methods that lose their 'this' context when passed to onClick handlers.
Automatically bind every method in a class at once instead of binding each one manually.
Write cleaner class methods without scattering manual .bind(this) calls throughout the constructor.
| gaearon/autobind-decorator | arthurmoorgan/drift | atom/etch-list-view | |
|---|---|---|---|
| Stars | 6 | 6 | 6 |
| Language | JavaScript | JavaScript | JavaScript |
| Last pushed | 2015-08-23 | — | 2020-04-28 |
| Maintenance | Dormant | — | Dormant |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 2/5 | 2/5 | 2/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Babel to compile decorator syntax plus core-js for supporting JavaScript features.
A JavaScript decorator that automatically binds class methods to their instance, fixing the common 'this is undefined' bug.
Mainly JavaScript. The stack also includes JavaScript, Babel, core-js.
Dormant — no commits in 2+ years (last push 2015-08-23).
No license information is mentioned in the explanation.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.