@tempots/dom
WithProvider() function
Creates a renderable with a provider mark and value.
The value will be available to any consumers that request the provider mark.
Signature:
WithProvider: (mark: ProviderMark, value: T, child: TNode) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
mark |
The provider mark. | |
value |
T |
The provider value. |
child |
The child TNode. |
Returns: Renderable
- The renderable with the provider.