JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="test"/>
<button id="trigger">trigger!</button>

JavaScript

$(function(){
    $('#test').bind('keyup', function(e, p1, p2){
        alert(p2);
    });
    
    $('#trigger').bind('click', function(){
        $('#test').trigger('keyup', ['additional', 'data']);
    });
});