JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  <div class="box">
    <div class="hd">header</div>
    <div class="bd">body</div>
  </div>
</body>

CSS

html,
body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  color: white;
  font-size: 40px;
  text-align: center;
}

.hd {
  background: blue;
  padding: 20px;
  margin-bottom: -40px;
}

.bd {
  background: green;
  padding: 20px;
  overflow:auto;
}