JSFiddle - React, Tailwind, and code Playground

HTML

<div id="sample"></div>

CSS

#sample { height:200px; width:200px; background-color:red}

JavaScript

var a = '300';
$( "#sample" ).css( '-moz-transform', 'rotate(' + a + 'deg)' );