JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<input id="myInput" type="text" value="waffles" />
<button type="button" onclick="$('#copiedValue').html($('#myInput').val())">Copy value</button>
<span id="copiedValue"></span>