JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrap">
  <div class="grid">
    <div class="item">
    Item 1
    </div>
    <div class="item">
    Item 2
    </div>
  </div>
</div>

CSS

.wrap {
  display: flex;
  flex-direction: column;
  /*justify-content: center;
  align-items: center;*/
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, calc(50% - 1rem)));
    grid-gap: 1rem;
}

.item {
  background: #eee;
}