-
-
Save techomoro/63ccee26b59f710668ad56902e249ded 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() { | |
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