Last active
August 29, 2015 14:15
-
-
Save d4goxn/afd76190f76dd95f9204 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
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