JSFiddle - React, Tailwind, and code Playground

HTML

<img id="img" src="http://www.gbheld.com/upload/b09ec16d.gif"><br/><br/>

    <button id="drehen1">Drehen 90 </button>
    <button id="drehen2">Drehen 180</button>
    <button id="drehen3">Drehen 270</button>
    <button id="drehen4">Drehen 360</button>

CSS

#img {
    margin-bottom: 4em;
}

JavaScript

$('#drehen1').click(function(e){
            $('#img').css('transform', 'rotate(90deg)');
        });

        $('#drehen2').click(function(e){
            $('#img').css('transform', 'rotate(180deg)');
        });

        $('#drehen3').click(function(e){
            $('#img').css('transform', 'rotate(270deg)');
        });

        $('#drehen4').click(function(e){
            $('#img').css('transform', 'rotate(360deg)');
        });