@tempots/dom

UseProviders() function

Creates a renderable function that consumes providers and renders a TNode.

Signature:

UseProviders: extends unknown[]>(marks: ToArrayOfMarks, fn: (providers: ToProviders) => TNode) => Renderable

Parameters

Parameter

Type

Description

marks

ToArrayOfMarks

The marks to be converted to an array of marks.

fn

(providers: ToProviders) => TNode

The function that takes providers and returns a TNode.

Returns: Renderable

A renderable function that consumes providers and renders a TNode.