( tag: string, attrs?: Attrs | null, ...children: Child[] )
| 7 | * Null/undefined/false attribute values are skipped. |
| 8 | */ |
| 9 | export function h( |
| 10 | tag: string, |
| 11 | attrs?: Attrs | null, |
| 12 | ...children: Child[] |
| 13 | ): HTMLElement { |
| 14 | const el = document.createElement(tag); |
| 15 | applyAttrs(el, attrs); |
| 16 | appendChildren(el, children); |
| 17 | return el; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Create an SVG element with attributes and children. |
no test coverage detected