JSFiddle - React, Tailwind, and code Playground

HTML

<div class=table>
  <div class=top>Top</div>
  <div class=middle>Middle
  </div>
  <div class=bottom>Bottom</div>
</div>

CSS

body,
html {
  height: 100%;
  padding: 0;
  margin: 0;
}

.table {
  height: 100%;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
}

.top {
  background: lightgreen;
}

.middle {
  background: yellow;
}

.bottom {
  background: lightblue;
}