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

Function Child

packages/react-dom/src/__tests__/ReactDOMUseId-test.js:297–300  ·  view source on GitHub ↗
({children})

Source from the content-addressed store, hash-verified

295 // of any size.
296
297 function Child({children}) {
298 const id = useId();
299 return <div id={id}>{children}</div>;
300 }
301
302 function App() {
303 let tree = <Child />;

Callers

nothing calls this directly

Calls 1

useIdFunction · 0.50

Tested by

no test coverage detected