MCPcopy Index your code
hub / github.com/react/react / printRects

Function printRects

packages/react-devtools-shared/src/devtools/utils.js:57–63  ·  view source on GitHub ↗
(rects: SuspenseNode['rects'])

Source from the content-addressed store, hash-verified

55}
56
57function printRects(rects: SuspenseNode['rects']): string {
58 if (rects === null) {
59 return ' rects={null}';
60 } else {
61 return ` rects={[${rects.map(rect => `{x:${rect.x},y:${rect.y},width:${rect.width},height:${rect.height}}`).join(', ')}]}`;
62 }
63}
64
65function printSuspense(suspense: SuspenseNode): string {
66 let name = '';

Callers 2

printSuspenseFunction · 0.85
printStoreFunction · 0.85

Calls 2

joinMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected