Last active
October 5, 2018 08:15
-
-
Save subzey/87780b1f1c9361bd182ee7f84e4a40f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import t from 'some-fancy-templater'; | |
t` | |
<div class="container"> | |
<h1>Ponies</h1> | |
<${PonyList}> | |
${ ponies.map( | |
({ name, type }) => t` | |
<${PonyItem} name="${name}" type="{type}"/> | |
` | |
) } | |
</${PonyList}> | |
</div> | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment