MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / renderPage

Function renderPage

apps/site/next.dynamic.page.mjs:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 * @returns {import('react').ReactElement}
113 */
114export const renderPage = props => {
115 // Defines a shared Server Context for the Client-Side
116 // That is shared for all pages under the dynamic router
117 setClientContext(props.context);
118
119 // The Matter Provider allows Client-Side injection of the data
120 // to a shared React Client Provider even though the page is rendered
121 // within a server-side context
122 return (
123 <MatterProvider {...props.context}>
124 <WithLayout layout={props.layout}>{props.content}</WithLayout>
125 </MatterProvider>
126 );
127};

Callers

nothing calls this directly

Calls 1

setClientContextFunction · 0.90

Tested by

no test coverage detected