hhru / babel-plugin-react-displayname

Repository from Github https://github.comhhru/babel-plugin-react-displaynameRepository from Github https://github.comhhru/babel-plugin-react-displayname

@hh.ru/babel-plugin-react-displayname

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

Installation

Simply add @hh.ru/babel-plugin-react-displayname to your .babelrc file:

{
    "plugins": ["@hh.ru/babel-plugin-react-displayname"]
}

Testing

yarn test

About

License:MIT License


Languages

Language:JavaScript 100.0%