JSFiddle - React, Tailwind, and code Playground

HTML

<form id="form1">
    <input type="text" value="hejsan">
</form>

<input type="button" id="resetForm" value="reset form" />

CSS

.hey {
    width:100%;
    background-color:red;}

JavaScript

$(function(){
    $('#resetForm').click(function(){
        $('form input[type=text]').val('');});
});