MCPcopy Index your code
hub / github.com/react/react / renderToString

Function renderToString

packages/react-dom/src/server/ReactDOMLegacyServerBrowser.js:18–28  ·  view source on GitHub ↗
(
  children: ReactNodeList,
  options?: ServerOptions,
)

Source from the content-addressed store, hash-verified

16};
17
18function renderToString(
19 children: ReactNodeList,
20 options?: ServerOptions,
21): string {
22 return renderToStringImpl(
23 children,
24 options,
25 false,
26 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server',
27 );
28}
29
30function renderToStaticMarkup(
31 children: ReactNodeList,

Callers

nothing calls this directly

Calls 1

renderToStringImplFunction · 0.90

Tested by

no test coverage detected