babel-plugin-react-display-name

Add displayName to React.createClass calls

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-react-display-name
2.0.07 years ago7 years agoMinified + gzip package size for babel-plugin-react-display-name in KB

Readme

babel-plugin-react-display-name
Add displayName to React.createClass calls

Installation

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

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["react-display-name"]
}

Via CLI

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

Via Node API

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