JSFiddle - React, Tailwind, and code Playground
by lmk123
HTML
<form id="form_id">
<input id="field1" value="default" />
<input type="file" />
<input type="button" id="button" value="button" />
<form>
JavaScript
document.getElementById('button').addEventListener('click',function(){
document.getElementById('form_id').reset();
})