MCPcopy
hub / github.com/facebook/react / getContextName

Function getContextName

packages/shared/getComponentNameFromType.js:50–52  ·  packages/shared/getComponentNameFromType.js::getContextName
(type: ReactContext<any>)

Source from the content-addressed store, hash-verified

48
49class="cm">// Keep in sync with react-reconciler/getComponentNameFromFiber
50function getContextName(type: ReactContext<any>) {
51 return type.displayName || class="st">'Context';
52}
53
54const REACT_CLIENT_REFERENCE = Symbol.for(class="st">'react.client.reference');
55

Callers 1

getComponentNameFromTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected