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

Function Comp

packages/react-dom/src/__tests__/ReactDOM-test.js:820–827  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

818 }
819 createNewPromise();
820 function Comp() {
821 const [promise, setPromise] = React.useState(currentPromise);
822 suspendOnNewPromise = () => {
823 setPromise(createNewPromise());
824 };
825 React.use(promise);
826 return null;
827 }
828
829 const fallback = (
830 <html data-fallback="">

Callers

nothing calls this directly

Calls 1

createNewPromiseFunction · 0.85

Tested by

no test coverage detected