JSFiddle - React, Tailwind, and code Playground

by dchaddock

HTML

<input id="resetTesting" value="Testing" />
<button type="button" onclck="resetInput();">Testing</button>

JavaScript

function resetInput() {
    document.getElementById("resetTesting").value = "I'm reset!";
}