JSFiddle - React, Tailwind, and code Playground
by Robbie Wxyz
HTML
<form action="" method="post"
onsubmit="document.getElementById('hidden_data').value=
document.getElementById('showing_data').innerHTML;">
<input id="hidden_data" name="data" type="hidden"/>
Editable: <div contenteditable="true" id="showing_data"
style="width:200px;border:3px solid red;min-height:22px;"></div>
<input type="submit" value="GO"/>
</form>