JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="Click me" />

JavaScript

$(document).ready(function() {
    $('input').on('click', function() {
        console.log("Got here!");
    })
    
    $(document).on('click', 'input', function() {
        console.log("Got here, too!");
    })
})