JSFiddle - React, Tailwind, and code Playground
HTML
<div class="sem_transform"></div>
<div class="com_transform"></div>
CSS
.sem_transform {
width: 40px;
height: 40px;
background: red;
/* Dica */
position: absolute;
left: 50%;
top: 50%;
}
.com_transform {
width: 40px;
height: 40px;
background: blue;
/* Dica */
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}