1.0.6 • Published 7 years ago
auto-bind-decorator v1.0.6
Auto Bind Decorator (React)
Small utility function used to re-bind class methods to current class instance(lexical context: this)
Installation
npm install --save auto-bind-decorator
Usage
import autoBind from "auto-bind-decorator";
@autoBind
class TestClass{
constructor(){
}
}
new TestClass();