Skip to content

Instantly share code, notes, and snippets.

@jaredly

jaredly/ex.jsx

Created Jul 22, 2014
Embed
What would you like to do?
var rows = [];
for (var i=0; i<items.length; i+=2){
rows.push(<div className="parent-row">
<div className="parent-card">
{items[i]}
</div>
<div className="parent-card">
{items[i+1]}
</div>
</div>)
}
.parent-row {
display: flex;
align-items: stretch;
}
.parent-card {
flex: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment