A Babel plugin that automatically adds a displayName property to React ES6 class components using the class name. This helps with debugging and DevTools when using ES6 classes. Version 1.0.0-beta1.4 is a pre-release with no recent updates; the repository is archived and unmaintained. It only supports ES6 class components (not functional components) and relies on Babel 6.x. No security issues reported.
npm install babel-plugin-transform-react-es6-displaynameVerified import paths — ran on the pinned version, not inferred.
Shows how to add the plugin to .babelrc and the transformation of a class component.
Consider using babel-plugin-react-displayname which supports functional components and newer Babel versions.
Use a different plugin or manually add displayName for functional components.
npm install --save-dev babel-plugin-transform-react-es6-displayname
Use Babel 6 or switch to a compatible plugin.