JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
  <div class="c1">1</div>
  <div class="c2">2</div>
</div>

CSS

.container {  
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "c1 c2";
  width: 100px;
  height: 100px;
}

.c1 { 
  grid-area: c1;
  background: #ff0000;
}

.c2 { 
  grid-area: c2;
  background: #0000ff;
  opacity: 0.5;
}