Skip to content

Instantly share code, notes, and snippets.

@techomoro

techomoro/App.js Secret

Created October 4, 2020 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techomoro/63ccee26b59f710668ad56902e249ded to your computer and use it in GitHub Desktop.
Save techomoro/63ccee26b59f710668ad56902e249ded to your computer and use it in GitHub Desktop.
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