JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input id="test" type="hidden" runat="server" vaule="false" />
<div id="results">
The value is:
<br />
</div>
</form>
JavaScript
var x = $('#test').val();
$('#results').append(x);