JSFiddle - React, Tailwind, and code Playground
by ThiefMaster
HTML
<button id=btn type=button>click</button>
JavaScript
document.querySelector('#btn').onclick = function() {
var doc = document.open('text/html', 'replace');
doc.write('test');
doc.close();
}