diff --git a/src/index.ts b/src/index.ts index d51530d..4a8bf66 100644 --- a/src/index.ts +++ b/src/index.ts @@ -268,7 +268,7 @@ const createElement = (tag: T, attr case "text": return textElement(attrs as JSX.IntrinsicElements["text"], ensureStrings(...children)); case "button": - return buttonElement(attrs as JSX.IntrinsicElements["button"]); + return buttonElement(attrs as JSX.IntrinsicElements["button"], ensureStrings(...children)); case "checkbox": return checkboxElement(attrs as JSX.IntrinsicElements["checkbox"]); case "textarea":