{"library":"babel-plugin-autobind-class-methods","type":"library","category":null,"description":"A Babel plugin that automatically binds all class methods to the instance, ensuring `this` context is preserved in callbacks. Version 5.0.1 supports hot reloading with React Hot Loader 3-beta. Unlike manual binding or property arrow functions, this plugin transforms code at build time with zero runtime overhead. It works with ES2015+ class syntax and is commonly used in React projects to avoid repetitive .bind(this) calls. The plugin is stable but not actively maintained; alternative patterns like class property arrow functions are preferred in modern codebases.","language":"javascript","status":"maintenance","version":"5.0.1","tags":["javascript","Babel","class","autobind","this","bind","arrow","react","method"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-autobind-class-methods","imports":["// .babelrc\n{ \"plugins\": [\"autobind-class-methods\"] }","require('@babel/core').transform(code, { plugins: [require('babel-plugin-autobind-class-methods')] })","// Not a runtime dependency; add to devDependencies and configure in .babelrc or babel.config.js"]},{"cmd":"yarn add babel-plugin-autobind-class-methods","imports":[]},{"cmd":"pnpm add babel-plugin-autobind-class-methods","imports":[]}],"homepage":null,"github":"https://github.com/chris-lock/babel-plugin-autobind-class-methods","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-autobind-class-methods","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-autobind-class-methods/compatibility"}}