JSFiddle - React, Tailwind, and code Playground

by Morpheus_God

HTML

<div class="cont">
  <input type="text" id="text"><br>
  <p id="res"></p>
  <button id="btn">Вирус</button>
</div>

JavaScript

document.getElementById('btn').onclick = () =>{
alert(document.getElementById('text').value);
}