JSFiddle - React, Tailwind, and code Playground

HTML

<div class="hidden">
    <div class="display"></div>
    
</div>

CSS

.hidden {
    width:100px;
    height:100px;
    background-color:red;
    display:none;
}

.display {
    width:50px;
    height:50px;
    background-color: yellow;
    display:block;
}