@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 |
The marks to be converted to an array of marks. | |
fn |
(providers: ToProviders |
The function that takes providers and returns a TNode. |
Returns: Renderable
A renderable function that consumes providers and renders a TNode.