I want to do something that I can't figure how to do, In a row, I want to show 4 boxes from my Express Backend data, after that, I want to skip to another row and print more 4 boxes, and report that until I reach the end of the Api.
With Express I have created my API and it's small 114 (but I want to use 112 for this question) columns with data, So what I want to do is I want to print a row with 4 columns then report the same state again.
Here is my code, but the problem is that it shows all the columns within one row (all 114 columns) and it gets messed up.
{this.state.api.map(api =>
<a className="surah" href={api.link}>
<p className="surah-counter">{aoi.id}</p>
<div>
<h2 className="surah-title-al">{api.sure}</h2>
<h1 className="surah-title">{api.surah}</h1>
<h3 className="ayah-number">{api.number}</h3>
</div>
</a>)}
I can't figure out how to do it.