JSFiddle - React, Tailwind, and code Playground

HTML

<input id="Anne" class="Lexy" type="text" value="Anne">
<input id="Bob" class="Lexy" type="text" value="Bob">

JavaScript

$('.Lexy').change(function() {
    alert("Hi, I'm " + $(this).val());
});

// Why do not dispatch the change event?
$('#Anne').val('Jenny');

// The event handler is working...
$('#Bob').change();