JSFiddle - React, Tailwind, and code Playground

HTML

<div class="layout">
  <header>header</header>
  <main>
    <div class="container">
      <div class="yet-one-wrapper">
        <div class="i-need-stretch">
          Меня нужно расстянуть на 100% высоты main.
        </div>
      </div>
    </div>
  </main>
  <footer>footer &copy;</footer>
</div>

CSS

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout main {
  flex-grow: 1;
}

.container {
  max-width: 80%;
  margin: auto;
}

.i-need-stretch {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px  solid;
}