@tempots/dom

WithProviders() function

Renders the given child with the specified providers.

Signature:

WithProviders: extends unknown[]>(providers: { [K in ProviderMarknumber]>]: T[number]; }, child: TNode) => Renderable

Parameters

Parameter

Type

Description

providers

{ [K in ProviderMark]: T[number]; }

An object containing the providers.

child

TNode

The child to render.

Returns: Renderable

The rendered result.