MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / deprecated

Function deprecated

src/utils.js:103–113  ·  view source on GitHub ↗
(propType, explanation)

Source from the content-addressed store, hash-verified

101}
102
103export function deprecated(propType, explanation) {
104 return function validate(props, propName, componentName, ...rest) {
105 if (props[propName] !== null && typeof props[propName] !== 'undefined') {
106 warnOnce(
107 `"${propName}" property of "${componentName}" has been deprecated.\n${explanation}`,
108 );
109 }
110
111 return propType(props, propName, componentName, ...rest);
112 };
113}
114
115// Shim Element if needed (e.g. in Node environment)
116const Element =

Callers 2

DropdownMenu.jsFile · 0.90
Row.jsFile · 0.90

Calls 1

warnOnceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…