JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" id="test">Click me</a>
<button id="add">Add another handler</button>

JavaScript

$('#test').on('click',function(){
   console.log("one"); 
});

$('#add').click(function(){
   $('#test').on('click',function(){
       console.log("two");
    }); 
});