JSFiddle - React, Tailwind, and code Playground
HTML
<div id='type'>success</div>
<div id="graph"></div>
<script type='text/javascript'>
//some script that manipulates the graph div
</script>
<br />
<div id='check-text'></div>
JavaScript
$('#check-text').html($('#type').text());