Skip to content

Instantly share code, notes, and snippets.

@DylanPiercey
Forked from mpeg/child.marko
Last active July 28, 2021 19:09
Show Gist options
  • Save DylanPiercey/613ef4ae99584bb994788e092231cd32 to your computer and use it in GitHub Desktop.
Save DylanPiercey/613ef4ae99584bb994788e092231cd32 to your computer and use it in GitHub Desktop.
<div/getEl>
<h1>Test</h1>
</div>
<return={
get div_width() {
return getEl().clientWidth
}
} />
<child/ret />
<effect() { console.log(ret.div_width) } />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment