MCPcopy
hub / github.com/preactjs/preact / Foo

Function Foo

hooks/test/browser/useId.test.jsx:280–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 it('should be unique across Fragments', () => {
279 const ids = [];
280 function Foo() {
281 const id = useId();
282 ids.push(id);
283 return <p>{id}</p>;
284 }
285
286 function App() {
287 return (

Callers

nothing calls this directly

Calls 1

useIdFunction · 0.90

Tested by

no test coverage detected