diff --git a/lib/html.ts b/lib/html.ts index a991420..3c410e3 100644 --- a/lib/html.ts +++ b/lib/html.ts @@ -1,6 +1,6 @@ export function h( name: Name, - props: Partial, + props: Partial = {}, ...children: (Node | string)[] ): HTMLElementTagNameMap[Name] { const element = Object.assign(document.createElement(name), props);