Skip to content

Instantly share code, notes, and snippets.

@d4goxn
Last active August 29, 2015 14:15
Show Gist options
  • Save d4goxn/afd76190f76dd95f9204 to your computer and use it in GitHub Desktop.
Save d4goxn/afd76190f76dd95f9204 to your computer and use it in GitHub Desktop.
render: function () {
console.log(this.state);
function renderArticleExcerpt(article) {
return ( < ArticleExcerpt key = {
article._id
} {...article
}
/>
);
}
var newestContent = this.state.newestArticles.map(renderArticleExcerpt);
metaData: [{
name: 'descr',
value: 'OpenGraph meta tags for user submitted content coming soon'
}],
console.log(metaData);
return ( < div className = "homePage" >
< h1 > HomePage < /h1> < div id = "tabContent"
className = "floatfix" >
< section id = "newest"
className = "kasraNewest" > {
this.state.newestArticles.map(renderArticleExcerpt)
} < /section> < /div> {
this.metaData.map(function (meta) {
React.createElement('p', meta);
})
} < /div>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment