JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" onclick="powers(654)">Click</a>

JavaScript

(window.powers = function(i) {
    /*Code here*/
    alert('test : ' + i);
})(2);