MCPcopy Create free account
hub / github.com/react/react / DivWithId

Function DivWithId

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

Source from the content-addressed store, hash-verified

120 }
121
122 function DivWithId({children}) {
123 const id = normalizeTreeIdForTesting(useId());
124 return <div id={id}>{children}</div>;
125 }
126
127 it('basic example', async () => {
128 function App() {

Callers

nothing calls this directly

Calls 2

useIdFunction · 0.50

Tested by

no test coverage detected