From 6e10fb27d0c98e4e2f7d5d26baea29807f286710 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 24 Oct 2023 15:07:49 +0200 Subject: [PATCH] fix: jsx component props being normalized --- src/transpiling/jsx_precompile.rs | 50 ++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/src/transpiling/jsx_precompile.rs b/src/transpiling/jsx_precompile.rs index 32b0c35..795c18b 100644 --- a/src/transpiling/jsx_precompile.rs +++ b/src/transpiling/jsx_precompile.rs @@ -210,10 +210,16 @@ fn null_arg() -> ExprOrSpread { } } -fn get_attr_name(jsx_attr: &JSXAttr) -> String { +fn get_attr_name(jsx_attr: &JSXAttr, is_component: bool) -> String { match &jsx_attr.name { // Case: