We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d3455c commit 4984b90Copy full SHA for 4984b90
src/coconut/react/View.macro.hx
@@ -156,14 +156,9 @@ class View {
156
#if react_devtools
157
@:keep @:noCompletion var __stateMap:{};
158
#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
- }
+ static public function fromHxx(attributes:$attributes & $hxxMeta):coconut.ui.RenderResult
+ return react.React.createElement($reactType, attributes);
+
167
});
168
169
parametrize(added[added.length - 1], cls);
0 commit comments