JSFiddle - React, Tailwind, and code Playground
HTML
<div id="app">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
</div>
SASS
#app
display: flex
flex-direction: column
flex-wrap: wrap
justify-content: stretch
height: 200px
background-color: salmon
> div
box-sizing: border-box
margin: 0.5rem
background-color: beige
flex-grow: 1
display: flex
align-items: center
justify-content: center
height: calc(50% - 1rem)
&:first-child
height: calc(100% - 1rem)