JSFiddle - React, Tailwind, and code Playground
by anoopsuda
HTML
<div class="robo">
olo
</div>
CSS
.robo {
width:40px; height:40px; background:red;
position:absolute;
}
JavaScript
function move(){
document.getElementsByClassName("robo")[0].style.left = "100px";
console.log("100");
}
function RoboMove(){
move();
}
RoboMove();