JSFiddle - React, Tailwind, and code Playground
JavaScript
var _log = console.log;
console.log = function () {
_log.apply(console, arguments);
[].slice.call(arguments).forEach(function (e) {
if(typeof e ==='object')
e = JSON.stringify(e);
document.body.appendChild(document.createTextNode(e)); document.body.appendChild(document.createElement('br'));
});
};
console.log('test',console);