babel-plugin-react-display-name
Add displayName to React.createClass calls
Last updated 5 years ago by sebmck .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-plugin-react-display-name 
SYNC missed versions from official npm registry.

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"]
});

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

4 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |