MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / acceptsRef

Function acceptsRef

packages/utils/src/is-react.ts:18–27  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

16}
17
18export function acceptsRef(obj: any): boolean {
19 if (!obj) {
20 return false;
21 }
22 if (obj?.prototype?.isReactComponent || isForwardOrMemoForward(obj)) {
23 return true;
24 }
25
26 return false;
27}
28
29export function isForwardRefType(obj: any): boolean {
30 if (!obj || !obj?.$$typeof) {

Callers 2

is-react.test.tsxFile · 0.90
buildComponentsFunction · 0.90

Calls 1

isForwardOrMemoForwardFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…