Mappingtype
{
[K in keyof JSX.IntrinsicElements]?: ComponentType<JSX.IntrinsicElements[K] & E>;
}| Type | |
|---|---|
JSX.IntrinsicElements | |
ComponentType | |
K |
Dispatch table from a JSX.IntrinsicElements key to a renderer component.
- Each entry is optional — unmapped elements fall through and render as themselves (e.g. an unmapped
<tree-foo>appears as a raw<tree-foo>HTML element). - Per-entry component receives
JSX.IntrinsicElements[K] & E— the declared props for that element type, plus any extra propsEthe mapper is configured to thread through.