JSFiddle - React, Tailwind, and code Playground

by delux

HTML

<input type="button" id="btn" value="Нажмите на кнопку!">

JavaScript

document.getElementById('btn').onclick = function() {
        alert("Спасибо!");
    }