Skip to content

Commit 4984b90

Browse files
committed
Fixes #30.
1 parent 1d3455c commit 4984b90

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/coconut/react/View.macro.hx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,9 @@ class View {
156156
#if react_devtools
157157
@:keep @:noCompletion var __stateMap:{};
158158
#end
159-
static public function fromHxx(hxxMeta:$hxxMeta, attributes:$attributes):coconut.ui.RenderResult
160-
return {
161-
$magic: coconut.react.View.TRE,
162-
type: $reactType,
163-
props: attributes,
164-
key: hxxMeta.key,
165-
ref: if (!cast hxxMeta.ref) null else hxxMeta.ref,
166-
}
159+
static public function fromHxx(attributes:$attributes & $hxxMeta):coconut.ui.RenderResult
160+
return react.React.createElement($reactType, attributes);
161+
167162
});
168163

169164
parametrize(added[added.length - 1], cls);

0 commit comments

Comments
 (0)