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

Function getComponentName

code/redux/public/app.js:4129–4149  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

4127}
4128
4129function getComponentName(fiber) {
4130 var type = fiber.type;
4131
4132 if (typeof type === 'function') {
4133 return type.displayName || type.name;
4134 }
4135 if (typeof type === 'string') {
4136 return type;
4137 }
4138 switch (type) {
4139 case REACT_FRAGMENT_TYPE:
4140 return 'ReactFragment';
4141 case REACT_PORTAL_TYPE:
4142 return 'ReactPortal';
4143 case REACT_CALL_TYPE:
4144 return 'ReactCall';
4145 case REACT_RETURN_TYPE:
4146 return 'ReactReturn';
4147 }
4148 return null;
4149}
4150
4151function describeFiber(fiber) {
4152 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