MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Component

Function Component

packages/react-aria/test/utils/shadowTreeWalker.test.tsx:317–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316describe.skip('speed test', () => {
317 let Component = props => {
318 if (props.depth === 0) {
319 return <div data-testid="hello">hello</div>;
320 }
321 return (
322 <div>
323 <Component depth={props.depth - 1} />
324 </div>
325 );
326 };
327 it.each`
328 Name | createTreeWalker
329 ${'native'} | ${() => document.createTreeWalker(document.body, NodeFilter.SHOW_ALL)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected