Skip to content

Instantly share code, notes, and snippets.

@techomoro

techomoro/App.js Secret

Created Oct 4, 2020
Embed
What would you like to do?
render() {
return (
<div>
{this.state.posts.map((item, index) => (
<div>
<div class="row">
<div class="leftcolumn">
<div class="card">
<div className= "title">
<h1>{item.title.rendered}</h1>
</div>
<div className= "content" dangerouslySetInnerHTML={{ __html: item.content.rendered }} />
</div>
</div>
</div>
</div>
))}
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment