JSFiddle - React, Tailwind, and code Playground

by jfriend00

HTML

Name: <input id="name" type="text">
<button onclick="go()">Go</button>

JavaScript

function go() {
    var text = document.getElementById("name").value;
    alert("The user typed '" + text + "'");
}