Last active
February 1, 2016 08:17
-
-
Save timbrandin/2c23d0e0da59e9a18790 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 React from 'react'; | |
import {Template, each} from 'react-template-helpers'; | |
Template.Welcome = ({friends}) => ( | |
<div> | |
Hello, these are my friends: | |
{each(friends, friend => | |
<div>{friend.name}</div> | |
).else( | |
<div>I have no friends</div> | |
)} | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment