Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Latest commit bbdaa13 Jan 30, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Empty return parse fix. (#5) Jan 30, 2018
.gitignore 0.0.2 Sep 28, 2016 Demonstrate decorator usage. Dec 10, 2016
package.json 0.0.5 Jan 30, 2018


Automatically detects and sets displayName for React components. This is useful for having real component names show up in production builds of React apps.

Babel already does this for React.createClass style components, this adds support for the two other kinds of component definitions:

  • ES6-classes style components
  • Stateless components that return JSX


Simply add add-react-displayname to your .babelrc file:

    "plugins": ["add-react-displayname"]


Doesn't work for decorated classes

If you are using the transform-decorators-legacy plugin, make sure it's placed after this plugin in your plugin list.


npm test

You can’t perform that action at this time.