babel-plugin-react-createcontext-displayname
v0.0.2
Published
A simple babel plugin that adds `displayName` values to `createContext` calls.
Downloads
3
Readme
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';
}