JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    test
</div>

CSS

div {
    background: grey;
    width: 20px;
}

div:hover {
    width: 200px;
}

JavaScript

setTimeout(function(){$("div").hover()}, 1000)