From bf7f92ee2183db91e79063f898ff62d100f8ed91 Mon Sep 17 00:00:00 2001 From: sdegutis Date: Fri, 6 Sep 2024 08:02:39 -0500 Subject: [PATCH] Single-element children is just child. --- site/unity/vanillajsx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/unity/vanillajsx.ts b/site/unity/vanillajsx.ts index 71426ac..549db30 100644 --- a/site/unity/vanillajsx.ts +++ b/site/unity/vanillajsx.ts @@ -118,7 +118,7 @@ function pushChildren(parent: babel.types.ObjectExpression, path: babel.NodePath parent.properties.push(t.objectProperty(t.identifier("children"), child.argument)); } else { - parent.properties.push(t.objectProperty(t.identifier("children"), child)); + parent.properties.push(t.objectProperty(t.identifier("child"), child)); } } else if (children.length > 0) {