babel-plugin-react-createcontext-displayname
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

babel-plugin-react-createcontext-displayname

A simple babel plugin that adds displayName values to createContext calls.

In:

const MyContext = createContext();

Out:

const MyContext = createContext();
if (process.env.NODE_ENV === 'development') {
  MyContext.displayName = 'MyContext';
}

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-react-createcontext-displayname

Weekly Downloads

0

Version

0.0.2

License

Apache-2.0

Unpacked Size

16.6 kB

Total Files

13

Last publish

Collaborators

  • meyer