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

Function Parent

packages/react-devtools-shared/src/__tests__/profilerContext-test.js:196–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

194 // @reactVersion >= 18.0
195 it('should auto-select the root ID matching the Components tab selection if it has profiling data (legacy render)', async () => {
196 const Parent = () => <Child />;
197 const Child = () => null;
198
199 const containerOne = document.createElement('div');
200 const containerTwo = document.createElement('div');

Callers

nothing calls this directly

Calls 5

toMatchInlineSnapshotMethod · 0.80
getElementIDAtIndexMethod · 0.80
startProfilingMethod · 0.80
stopProfilingMethod · 0.80
renderFunction · 0.70

Tested by

no test coverage detected