R
R
Raloynner2022-01-04 07:03:28
React
Raloynner, 2022-01-04 07:03:28

How to map such a grid?

61d3c6fdce25b071496538.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2022-01-04
@Raloynner

Just like a regular list: Set the increased width via css:
{items.map(n => <div className="item">...</div>)}

.item:nth-child(6n + 3),
.item:nth-child(6n + 4) {
  ...
}

https://jsfiddle.net/exfk10Ls/1/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question