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.
15 lines (14 loc) • 538 B
JavaScript
var isProduction = process.env.NODE_ENV === 'production';
var 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(_ref) {
var innerRef = _ref.innerRef;
deprecate('The `innerRef` prop has been deprecated in favor of the `ref` prop. It will be removed with version 2.0.0.', innerRef);
}