JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <div class="inner"></div>
</div>

CSS

html {
    height: 100%;
    width: 100%;
}

body {
    display: table;
    height: 100%;
    width: 100%;
}

div.container {
    display: table-cell;
    height: 100%;
    width: 100%;
    vertical-align: middle;
}

div.inner {
    height: 100px;
    width: 100px;
    background: tomato;
    margin: auto;
}