@tempots/dom
UseProvider() function
Creates a renderable function that consumes a provider value and renders a TNode
.
Signature:
UseProvider: <T>(mark: ProviderMark<T>, fn: (value: T) => TNode) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
mark |
ProviderMark<T> |
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
.