Chartieer / babel-plugin-react-jss

JSS React displayName to all components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

babel-plugin-react-jss

Automatically sets displayName for JSS-React components. Prefixed with "JSS_"

Installation

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

{
    "plugins": ["add-react-jss"]
}

Troubleshooting

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.

Testing

npm test

About

JSS React displayName to all components


Languages

Language:JavaScript 100.0%