Function: getServerContent()
Function: getServerContent()
function getServerContent(
component,
data,
container,
event,
head?): string;
Get the server content.
Parameters
component
ReactNode
The React component to hydrate.
data
Partial
<ResponseSnapshotType
>
The data to pass to the components.
container
Container
The service container.
event
IncomingBrowserEvent
The incoming browser event.
head?
HeadContext
The head context.
Returns
string
The server response content as a string.