Reference
@reckona/mreact-dom/server
18 public exports.
Function
FunctionrenderToPipeableStream
function renderToPipeableStream(element: ReactCompatNode, options: RenderToPipeableStreamOptions): PipeableStreamRenders a React-compatible node to a Node-style pipeable stream.FunctionrenderToReadableStreamfunction renderToReadableStream(element: ReactCompatNode, options: RenderToReadableStreamOptions): Promise<ReactDOMServerReadableStream>Renders a React-compatible node to a WHATWG readable stream.FunctionrenderToStaticMarkupfunction renderToStaticMarkup(element: ReactCompatNode, options?: ServerOptions): stringRenders a React-compatible node to static HTML without hydration metadata.FunctionrenderToStringfunction renderToString(element: ReactCompatNode, _options?: ServerOptions): stringRenders a React-compatible node to an HTML string.Functionresumefunction resume(element: ReactCompatNode, _postponedState: unknown, options: ResumeOptions): Promise<ReactDOMServerReadableStream>Resumes postponed server rendering into a WHATWG readable stream.FunctionresumeToPipeableStreamfunction resumeToPipeableStream(element: ReactCompatNode, _postponedState: unknown, options: ResumeOptions): Promise<PipeableStream>Resumes postponed server rendering into a Node-style pipeable stream.Interface
InterfaceBootstrapScriptDescriptor
interface BootstrapScriptDescriptorExternal bootstrap script descriptor emitted after the rendered HTML.InterfacePipeableStreaminterface PipeableStreamMinimal pipeable stream returned by Node-oriented server rendering.InterfacePipeableStreamDestinationinterface PipeableStreamDestinationDestination accepted by a pipeable server render stream.InterfaceReactDOMServerReadableStreaminterface ReactDOMServerReadableStreamReadable stream augmented with the allReady promise used by React DOM server.InterfaceReactImportMapinterface ReactImportMapImport map descriptor emitted as an inline bootstrap resource.InterfaceRenderBootstrapOptionsinterface RenderBootstrapOptionsBootstrap scripts, modules, and import maps appended to server output.InterfaceRenderToPipeableStreamOptionsinterface RenderToPipeableStreamOptionsOptions for rendering HTML to a pipeable stream.InterfaceRenderToReadableStreamOptionsinterface RenderToReadableStreamOptionsOptions for rendering HTML to a WHATWG readable stream.InterfaceServerOptionsinterface ServerOptionsShared server render options accepted by string rendering helpers.