@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.

Usage no npm install needed!

<script type="module">
  import hhRuBabelPluginReactDisplayname from 'https://cdn.skypack.dev/@hh.ru/babel-plugin-react-displayname';
</script>

README

@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