JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="handler" value="yes"/>
<a href="javascript:function(){ alert('hi');}">asd</a>
<div id='result'>
<span>
<script>document.write($('#handler').val());</script>
</span>
</div>