Home > @asl-19/emotion-utils > devLabel
Returns CSSObject containing provided label, but only in development.
Signature:
devLabel: (label: string) => CSSObject | null|
Parameter |
Type |
Description |
|---|---|---|
|
label |
string |
Returns:
CSSObject | null
Emotion’s css prop transform doesn’t strip manually added labels in prod, so we should use this utility to avoid long (and potentially CPU expensive?) generated classNames in production.