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

Function Shell

fixtures/flight-esm/src/index.js:51–55  ·  view source on GitHub ↗
({data})

Source from the content-addressed store, hash-verified

49);
50
51function Shell({data}) {
52 const [root, setRoot] = useState(use(data));
53 updateRoot = setRoot;
54 return root;
55}
56
57ReactDOM.hydrateRoot(document, React.createElement(Shell, {data}));

Callers

nothing calls this directly

Calls 2

useStateFunction · 0.90
useFunction · 0.90

Tested by

no test coverage detected