README.md
451 Bytes
babel-plugin-react-display-name
Add displayName to React.createClass calls
Installation
$ npm install babel-plugin-react-display-name
Usage
.babelrc
(Recommended)
Via .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"]
});