JSFiddle - React, Tailwind, and code Playground

HTML

<form class="profile_img_form" method="POST">
  <input type="text"  />
  <button id="clickme">
  Reset me!
  </button>
</form>

JavaScript

$("#clickme").click(function(){
	$('.profile_img_form').trigger("reset");
	return false; // this is not recommended
})