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

Function Test

packages/react-aria/test/utils/useId.test.jsx:37–40  ·  view source on GitHub ↗
({tick})

Source from the content-addressed store, hash-verified

35 let isReact18OrHigher = parseInt(React.version, 10) >= 18;
36
37 function Test({tick}) {
38 let id = useId();
39 return React.createElement('div', {'data-id': id}, tick);
40 }
41
42 let container = document.createElement('div');
43 document.body.appendChild(container);

Callers

nothing calls this directly

Calls 2

useIdFunction · 0.85
createElementMethod · 0.80

Tested by

no test coverage detected