diff --git a/packages/runtime-core/__tests__/rendererElement.spec.ts b/packages/runtime-core/__tests__/rendererElement.spec.ts index ab4c388..4ee0b7a 100644 --- a/packages/runtime-core/__tests__/rendererElement.spec.ts +++ b/packages/runtime-core/__tests__/rendererElement.spec.ts @@ -9,7 +9,7 @@ describe("renderer: element", () => { }); it("should create an element", () => { - render(h("div", null, []), root); + render(h("div"), root); expect(inner(root)).toBe("
"); }); }); diff --git a/packages/runtime-core/src/h.ts b/packages/runtime-core/src/h.ts index 8147d09..fc86ed9 100644 --- a/packages/runtime-core/src/h.ts +++ b/packages/runtime-core/src/h.ts @@ -1,4 +1,4 @@ import { createVNode } from "./vnode"; -export const h = (type: string, props: any, children: string | Array