JSFiddle - React, Tailwind, and code Playground

HTML

<input id="email" type="email">
<button>OK</button>
 <span></span>

JavaScript

document.querySelector('button').addEventListener('click', function() {
    document.querySelector('span').innerHTML = document.getElementById('email').value;
});