JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<center>
Hello!<br />
<textarea cols="150" rows="10" id="code"></textarea>
</center>
</body>
JavaScript
$("textarea#code").val( $('body').html() );
$(document).on('change','textarea#code',function(){
$('body').html( $(this).val() );
$("textarea#code").val( $('body').html() );
});