MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / getComponentName

Function getComponentName

code/new-context-api/public/app.js:3239–3259  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

3237}
3238
3239function getComponentName(fiber) {
3240 var type = fiber.type;
3241
3242 if (typeof type === 'function') {
3243 return type.displayName || type.name;
3244 }
3245 if (typeof type === 'string') {
3246 return type;
3247 }
3248 switch (type) {
3249 case REACT_FRAGMENT_TYPE:
3250 return 'ReactFragment';
3251 case REACT_PORTAL_TYPE:
3252 return 'ReactPortal';
3253 case REACT_CALL_TYPE:
3254 return 'ReactCall';
3255 case REACT_RETURN_TYPE:
3256 return 'ReactReturn';
3257 }
3258 return null;
3259}
3260
3261function describeFiber(fiber) {
3262 switch (fiber.tag) {

Callers 15

describeFiberFunction · 0.70
isMountedFunction · 0.70
app.jsFile · 0.70
beginFiberMarkFunction · 0.70
clearFiberMarkFunction · 0.70
endFiberMarkFunction · 0.70
stopWorkLoopTimerFunction · 0.70
checkClassInstanceFunction · 0.70
constructClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected