Skip to content

Instantly share code, notes, and snippets.

@yuchi
Created December 12, 2016 22:56
Show Gist options
  • Save yuchi/8db27bcf23af3c822d79f672f0728255 to your computer and use it in GitHub Desktop.
Save yuchi/8db27bcf23af3c822d79f672f0728255 to your computer and use it in GitHub Desktop.
Missing getters on Metal
class DropArea extends JSXComponent {
render() {
const validEntries = this.entries.filter(entry => entry.valid);
if (validEntries) return (
<ul>
{ entries.map(
({title}) =>
<li>{ title }</li>
)
}
</ul>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment