Skip to content

Instantly share code, notes, and snippets.

@ColeTownsend
Created April 1, 2017 20:27
Show Gist options
  • Save ColeTownsend/bdb77f946d89b5ce95da17ff8511e5d4 to your computer and use it in GitHub Desktop.
Save ColeTownsend/bdb77f946d89b5ce95da17ff8511e5d4 to your computer and use it in GitHub Desktop.
Feed.js
import Post from './post'; // coming soon, don't worry
export default function({ className, data }) {
return (
<div className={className}>
{data.map(post => (
<Post key={post.id} post={post} />
))
}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment