JSFiddle - React, Tailwind, and code Playground
by dirtyd77
HTML
Click the image
<a href="#" onclick="flipUp(this)"><img src='http://i.stack.imgur.com/sBvD5.png' height="20" width="20" />
</a>
JavaScript
var angle = 15;
function flipUp(el){
// el is the anchor element (a)
// el.children[0] is the img
// however, this assumes the first child of the anchor element is the img
el.children[0].style.transform = 'rotate(' + angle + 'deg)';
// add 15 degs on every click
angle += 15;
}