JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 306
  • Score
    100M100P100Q94406F
  • License MIT

Babel plugin that binds every class method to "this" with hot reload support

Package Exports

  • babel-plugin-autobind-class-methods

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-autobind-class-methods) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-plugin-autobind-class-methods

Autobinds "this" to class methods, works with hot reloading, created to be used with React

Requires React Hot Loader 3

Install:

   npm install babel-plugin-autobind-class-methods --save-dev 

Example .babelrc:

{
  "presets": ["es2015", "react"],
  "plugins": ["autobind-class-methods", "react-hot-loader/babel"]
}