|
|
|
|
|
by extra88
1757 days ago
|
|
How do you solve the kind of problem the article is describing? How do you have a margin on the bottom of every <Card> except the last one? Is there a loop for cards with a conditional that doesn't add the margin? I think the declarative language solution they offer is better. |
|
cards.map((card, i) => {
)}The nice thing about this is you have a full programming language at your fingertips. You could do something with every even card, ever prime number card, etc.