@tempots/dom
UseProvider() function
Creates a renderable function that consumes a provider value and renders a TNode
.
Signature:
UseProvider: (mark: ProviderMark, fn: (value: T) => TNode) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
mark |
The provider mark. | |
fn |
(value: T) => TNode |
The function that takes the provider value and returns a |
Returns: Renderable
A renderable function that consumes the provider value and renders a TNode
.