Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 390 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 390 Bytes

@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