JSFiddle - React, Tailwind, and code Playground

HTML

<img id="image" src="http://i.stack.imgur.com/bdrWh.png">
<script>
var image = document.getElementById( "image" );
var test = 0;
setInterval(function() {
	if( test >= 360 ) test = 0;
	test = test + 1;
	image.style.transform="rotate("+test+"deg)";
}, false);
</script>