I am working with next.js and i am trying to fetch data from database via api, I want to know
Here is my code
{
this.state.trending.map((post, index) => {
return (
<div class='col-md-4 col-sm-12 col-lg-4 mt10'>
<div class='article'>
<img src={post.image} />
<div class='article-text'>
<h3>{post.title}</h3>
<p>Lorem Ipsum dummy text...</p>
</div>
</div>
</div>
);
});
}