JSFiddle - React, Tailwind, and code Playground
HTML
<button onclick="getCard()"> click me </button>
<script>
function getCard() {
$("body").append("click ");
$("button").attr("onclick", "").off().fadeOut(1000);
}
</script>
<button onclick="getCard()"> click me </button>
<script>
function getCard() {
$("body").append("click ");
$("button").attr("onclick", "").off().fadeOut(1000);
}
</script>