JSFiddle - React, Tailwind, and code Playground
HTML
<div class="box">
<div class="my">Первый див</div>
<div class="my">Второй див</div>
<div class="my">Третий див</div>
</div>
CSS
.box {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.my {
padding: 10px;
margin: 2px;
flex-grow: 1;
background-color: #0984e3;
color: #fff;
}