JSFiddle - React, Tailwind, and code Playground

HTML

<form name="frm1">
    <input type="text" name="text1" value="" /> <br>
    <input type="text" name="text2" value="" /><br>
    <input type="reset" />

</form>

JavaScript

$(document).ready(function(){
    $("input[type=reset]").on("click", function(){
        console.log($(this));
        alert("form is reset");
    });        
});