JSFiddle - React, Tailwind, and code Playground
HTML
<input id="test" type="text" name="test" />
JavaScript
$(function () {
$('#test').click(function () {
$('#test').keydown();
$('#test').focus();
$('#test').change();
});
});
$(function () {
$('#test').on('keydown', function(){
$('<p>test!</p>').insertAfter('#test');
});
});