JSFiddle - React, Tailwind, and code Playground
by peterbenoit
HTML
<script id="onload">
window.log = function(){
log.history = log.history || []; // store logs to an array for reference
log.history.push(arguments);
arguments.callee = arguments.callee.caller;
if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
</script>
JavaScript
document.write('<pre>'+document.getElementById('onload').innerHTML.replace(">",'>').replace("<",'<')+'</pre>');