MCPcopy
hub / github.com/facebook/react / App

Function App

packages/react-dom/src/__tests__/ReactDOMUseId-test.js:249–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 // of id generation, though, what matters is that Fizz and Fiber
248 // are consistent.
249 function App() {
250 return (
251 <>
252 {null}
253 <DivWithId />
254 {null}
255 <DivWithId />
256 </>
257 );
258 }
259
260 await serverAct(async () => {
261 const {pipe} = ReactDOMFizzServer.renderToPipeableStream(<App />);

Callers

nothing calls this directly

Calls 3

forFunction · 0.85
useIdFunction · 0.50
useStateFunction · 0.50

Tested by

no test coverage detected