renderApp() — react Function Reference
Architecture documentation for the renderApp() function in region.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 20d20d14_fad0_d676_cd0d_294359311808["renderApp()"] 95087d21_2649_596a_5bfb_b715860db815["region.js"] 20d20d14_fad0_d676_cd0d_294359311808 -->|defined in| 95087d21_2649_596a_5bfb_b715860db815 style 20d20d14_fad0_d676_cd0d_294359311808 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fixtures/flight-esm/server/region.js lines 32–42
async function renderApp(res, returnValue) {
const {renderToPipeableStream} = await import('react-server-dom-esm/server');
const m = await import('../src/App.js');
const App = m.default;
const root = React.createElement(App);
// For client-invoked server actions we refresh the tree and return a return value.
const payload = returnValue ? {returnValue, root} : root;
const {pipe} = renderToPipeableStream(payload, moduleBasePath);
pipe(res);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does renderApp() do?
renderApp() is a function in the react codebase, defined in fixtures/flight-esm/server/region.js.
Where is renderApp() defined?
renderApp() is defined in fixtures/flight-esm/server/region.js at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free