JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
  <div class="item">
    <div class="img"></div>
    <h2>Caption text</h2>
    <p>Some other text, Some other text, Some other text</p>
  </div>
  <div class="item">
    <div class="img"></div>
    <h2>Caption text</h2>
    <p>Some other text, Some other text, Some other text</p>
  </div>
  <div class="item">
    <div class="img"></div>
    <h2>Caption text</h2>
    <p>Some other text, Some other text, Some other text</p>
  </div>
  <div class="item">
    <div class="img"></div>
    <h2>Caption text</h2>
    <p>Some other text, Some other text, Some other text</p>
  </div>
  <div class="item">
    <div class="img"></div>
    <h2>Caption text</h2>
    <p>Some other text, Some other text, Some other text</p>
  </div>
  <div class="item">
    <div class="img"></div>
    <h2>Caption text</h2>
    <p>Some other text, Some other text, Some other text</p>
  </div>
</div>

CSS

* {
  box-sizing: border-box;
}

.container {
 display: flex;
 flex-wrap: wrap;
 max-width: 800px; /* какая-то ширина контейнера */
 margin: 0 auto;
}

.img {
  width: 100px;
  height: 100px;
  background-color: blue;
}

.item {
  flex-basis: 33.33%;
  padding: 10px;
  border: 1px solid #333;
}