UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

19 lines (16 loc) 532 B
const isProduction = process.env.NODE_ENV === 'production'; const cache = {}; export function deprecate(message, condition) { if (!isProduction && !cache[message] && condition) { cache[message] = true; /* eslint-disable no-console */ console.warn('VCC UI Deprecation Notice:\n', message); /* eslint-enable */ } } export function deprecateInnerRef({ innerRef }) { deprecate( 'The `innerRef` prop has been deprecated in favor of the `ref` prop. It will be removed with version 2.0.0.', innerRef ); }