https://github.com/meyer/babel-plugin-react-createcontext-displayname
Add a displayName value to createContext calls
https://github.com/meyer/babel-plugin-react-createcontext-displayname
Last synced: 3 months ago
JSON representation
Add a displayName value to createContext calls
- Host: GitHub
- URL: https://github.com/meyer/babel-plugin-react-createcontext-displayname
- Owner: meyer
- License: apache-2.0
- Created: 2019-04-09T06:25:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T19:21:15.000Z (over 2 years ago)
- Last Synced: 2025-02-12T13:45:36.485Z (5 months ago)
- Language: TypeScript
- Size: 39.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-plugin-react-createcontext-displayname
A simple babel plugin that adds `displayName` values to `createContext` calls.In:
```typescript
const MyContext = createContext();
```Out:
```typescript
const MyContext = createContext();
if (process.env.NODE_ENV === 'development') {
MyContext.displayName = 'MyContext';
}
```