MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / DOMElement

Function DOMElement

src/utils.js:119–129  ·  view source on GitHub ↗
(props, propName, componentName)

Source from the content-addressed store, hash-verified

117 (typeof window === 'object' && window.Element) || function () {};
118
119export function DOMElement(props, propName, componentName) {
120 if (!(props[propName] instanceof Element)) {
121 return new Error(
122 'Invalid prop `' +
123 propName +
124 '` supplied to `' +
125 componentName +
126 '`. Expected prop to be an instance of Element. Validation failed.',
127 );
128 }
129}
130
131export const targetPropType = PropTypes.oneOfType([
132 PropTypes.string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…