Skip to content

Commit

Permalink
Merge pull request #31 from MVCoconut/0.2.2-fix-30
Browse files Browse the repository at this point in the history
Fixes #30.
  • Loading branch information
back2dos committed May 29, 2024
2 parents b491734 + 4984b90 commit 6b5ebec
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/coconut/react/View.macro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,9 @@ class View {
#if react_devtools
@:keep @:noCompletion var __stateMap:{};
#end
static public function fromHxx(hxxMeta:$hxxMeta, attributes:$attributes):coconut.ui.RenderResult
return {
$magic: coconut.react.View.TRE,
type: $reactType,
props: attributes,
key: hxxMeta.key,
ref: if (!cast hxxMeta.ref) null else hxxMeta.ref,
}
static public function fromHxx(attributes:$attributes & $hxxMeta):coconut.ui.RenderResult
return react.React.createElement($reactType, attributes);

});

var fromHxx = added[added.length - 1];
Expand Down

0 comments on commit 6b5ebec

Please sign in to comment.