JSFiddle - React, Tailwind, and code Playground
HTML
<div class="className">
<input type="text" value="Hello World!" />
<input type="text" value="Hello World!" />
<input type="text" value="Hello World!" />
<input id="clear" type="button" value="Clear" />
</div>
JavaScript
$("#clear").click(function(){
$("input[type='text']").val("");
});