Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T19:21:15.000Z (about 2 years ago)
- Last Synced: 2024-11-01T00:40:18.349Z (3 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';
}
```