Generic render-function signature parameterised over the output type
(Output) and the per-framework props shape (Props).
The React adapter uses RenderProps with unknown output — see
the default specialisation below — and the HTML adapter uses
HtmlRenderFunction (an alias for
RenderFunction\<string, HtmlRenderProps\>). Future framework
adapters (Vue, Solid, Svelte, Lit) pick their own pairing.
The default Output = unknown, Props = RenderProps keeps the historic
React-flavoured signature compatible — any caller writing
RenderFunction without type arguments gets exactly the previous
(props: RenderProps) =\> unknown shape.
Generic render-function signature parameterised over the output type (
Output) and the per-framework props shape (Props).The React adapter uses RenderProps with
unknownoutput — see the default specialisation below — and the HTML adapter uses HtmlRenderFunction (an alias forRenderFunction\<string, HtmlRenderProps\>). Future framework adapters (Vue, Solid, Svelte, Lit) pick their own pairing.The default
Output = unknown, Props = RenderPropskeeps the historic React-flavoured signature compatible — any caller writingRenderFunctionwithout type arguments gets exactly the previous(props: RenderProps) =\> unknownshape.