F
isRenderable
Tells whether a value can be rendered as a React element type: a function or class
component, or a memo/forwardRef/lazy object.
function isRenderable(value: unknown): value is ElementType<any, keyof IntrinsicElements>Parameters
| Name | Type | Description |
|---|---|---|
| value | unknown | The value to check. |
Returns
value is ElementType<any, keyof IntrinsicElements>Whether React can render it.