Skip to content

Commit 6e8fe8d

Browse files
committed
Allow String variables as jsx node
1 parent 84d9bb8 commit 6e8fe8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/react/ReactMacro.hx

+4
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ class ReactMacro
142142
});
143143
case v: throw 'assert';//TODO: do something meaningful here
144144
}
145+
146+
case TInst(_.toString() => "String", []):
147+
function(_, _) {};
148+
145149
default:
146150
propsFor(macro @:pos(type.pos) {
147151
function get<T>(c:Class<T>):T {

0 commit comments

Comments
 (0)