Function
ssrRenderComponent
(
comp: Component,
props: Props | null = null,
children: Slots | SSRSlots | null = null,
parentComponent: ComponentInternalInstance | null = null,
slotScopeId?: string,
)
Source from the content-addressed store, hash-verified
| 8 | import type { SSRSlots } from './ssrRenderSlot' |
| 9 | |
| 10 | export function ssrRenderComponent( |
| 11 | comp: Component, |
| 12 | props: Props | null = null, |
| 13 | children: Slots | SSRSlots | null = null, |
| 14 | parentComponent: ComponentInternalInstance | null = null, |
| 15 | slotScopeId?: string, |
| 16 | ): SSRBuffer | Promise<SSRBuffer> { |
| 17 | return renderComponentVNode( |
| 18 | createVNode(comp, props, children), |
| 19 | parentComponent, |
| 20 | slotScopeId, |
| 21 | ) |
| 22 | } |