JSFiddle - React, Tailwind, and code Playground

by santhucool007

HTML

<input type="email" id="abc" placeholder="abc">
 <input type="button" onclick="clickme()" value="go">

JavaScript

function clickme(){
document.getElementById("abc").value="";
}