JSFiddle - React, Tailwind, and code Playground

HTML

<script>
 var Module = {
    noInitialRun: true,
    print: (function() {
        return function(text) {
            var old = document.getElementById('Output').innerHTML;
            document.getElementById('Output').innerHTML = old + '<br>' + text;
        };
    })()
  };
</script>
<script src="http://joebo.github.io/j-emscripten/j-called.min.js"></script>
<textarea id="Input"><"0 i.5</textarea>
<input type="button" value="Run" onClick="Run()"/>
<div id="Output"></div>

JavaScript

Module.ccall('main', null, null, null);
var process = Module.cwrap('process_wrapper', null, ['string']);
function Run() {
    document.getElementById('Output').innerHTML = '';
    var input = document.getElementById('Input').value;
    process(input);
}