FnRenderer()
ts
function FnRenderer(props): Element | null;Defined in: components/fn.tsx:59
Executes a function and renders its result.
Unlike Fn, this component expects the called function to return DynamicElementProps, which will then be rendered using Renderer.
Parameters
| Parameter | Type |
|---|---|
props | ExposableFn |
Returns
Element | null
React Component
Remarks
- The function must resolve to DynamicElementProps
- Supports async functions via usePromise
Since
1.0.0
Author
Simon Kovtyk