I have a question about Bootstrap. Is there simple solution for rendering array of elements in columns automatically, that works similar to row-cols-*?
Current code:
<div className="row row-cols-3">
{array.map((item) => (
<div className="col" key={item.id}>
<div class="card" style={{ width: "12rem", height: "12rem" }}>
<div class="card-body">
{item.name}
</div>
</div>
</div>
))}
</div>
And that renders in this order:

But I want layout to be like this:

I tried with flex order but I can't work it out in simple way...