JSFiddle - React, Tailwind, and code Playground
by stovberpv
HTML
<div>
<span id='output'>0</span>
</div>
<div>
<input id='input' type='text' value='1'>
</div>
JavaScript
let output = document.getElementById('output');
let input = document.getElementById('input');
output.innerText = input.value;