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

Function Parent

compat/test/browser/forwardRef.test.jsx:376–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374 });
375
376 const Parent = () => {
377 const parentRef = useRef(null);
378 return <Inner ref={parentRef}>child</Inner>;
379 };
380
381 act(() => {
382 render(<Parent />, scratch);

Callers

nothing calls this directly

Calls 1

useRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…