0.1.0 • Published 9 years ago

babel-plugin-react-class-display-name v0.1.0

Weekly downloads
19
License
MIT
Repository
github
Last release
9 years ago

babel-plugin-react-class-display-name

Add displayName to ES6 classes that extend React.Component

Installation

$ npm install babel-plugin-react-class-display-name

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["react-class-display-name"]
}

Via CLI

$ babel --plugins react-class-display-name script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["react-class-display-name"]
});