JSFiddle - React, Tailwind, and code Playground
by schittuluri
HTML
<button id="button" class="test">Click me</button>
JavaScript
function anotherfun(){
alert("this is another function");
var myFunc = function(){
myFunc = function(){}; // kill it as soon as it was called
alert('call once and never again!'); // your stuff here
}
}
$('.test').click(function(){
anotherfun();
});