JSFiddle - React, Tailwind, and code Playground

HTML

<div id = "footer">
</div>

CSS

#footer {
    height: 100px;
    background-color: grey;
}

JavaScript

var altura = 100;

$("#footer").css("top", altura + "px");