JSFiddle - React, Tailwind, and code Playground

by Lalji Tadhani

HTML

<input type='number'      
placeholder='ttt' 
oninput='fs()'>
<div class='bb' id='bb'>
</div>
<button onclick='fs()'>saasasas
</button>

CSS

.bb{
  border:1px solid red;
  width:50px;
  height:50px;
}

JavaScript

function fs(n){
n = document.querySelector('input').value;
document.getElementById('bb').style.transform = "rotate(".push(n)")";
console.log(n+"deg");}