JSFiddle - React, Tailwind, and code Playground

HTML

<div></div>

CSS

div {
    height: 100px;
    width: 100px;
    background: tomato;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -50px;
    margin-top: -50px;
}