Unlike React — where RenderFunction directly produces a
ReactNode — the Svelte equivalent produces a
SvelteRenderDescriptor. The descriptor pairs a component
constructor with the per-field props and is mounted by the parent
renderer via <svelte:component>. This indirection is the price
of Svelte's compile-time component model: the dispatcher cannot
fabricate rendered DOM at runtime, so it returns a recipe for the
parent to mount.
Specialisation of the generic
"../core/renderer.ts".RenderFunction | RenderFunction from
core/renderer.ts with
Output = SvelteRenderDescriptor | null and
Props = SvelteRenderProps.
Signature for a render function attached to a SvelteComponentResolver.
Unlike React — where
RenderFunctiondirectly produces aReactNode— the Svelte equivalent produces a SvelteRenderDescriptor. The descriptor pairs a component constructor with the per-field props and is mounted by the parent renderer via<svelte:component>. This indirection is the price of Svelte's compile-time component model: the dispatcher cannot fabricate rendered DOM at runtime, so it returns a recipe for the parent to mount.Specialisation of the generic "../core/renderer.ts".RenderFunction | RenderFunction from
core/renderer.tswithOutput = SvelteRenderDescriptor | nullandProps = SvelteRenderProps.