MCPcopy Create free account
hub / github.com/microsoft/SandDance / isReactElement

Function isReactElement

docs/app/js/sanddance-app.js:6904–6906  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6902var canUseSymbol = typeof Symbol === "function" && Symbol.for;
6903var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 0xeac7;
6904function isReactElement(value) {
6905 return value.$$typeof === REACT_ELEMENT_TYPE;
6906}
6907function emptyTarget(val) {
6908 return Array.isArray(val) ? [] : {};
6909}

Callers 1

isSpecialFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected