JSFiddle - React, Tailwind, and code Playground
HTML
<input type="submit" value="Open" />
JavaScript
$(function(){
$("input").click(function(){
var a = window.open('', ''),
d = a.document,
c = $("<div />").html("Контент вкладки");
d.open("text/html");
d.write("<!DOCTYPE html>");
d.write("<html><head></head><body></body></html>");
var head = $("head", $(d)).append($("<title />").text("Create new tab"));
var body = $("body", $(d)).append(c);
// через переменную head пихаем линки на стили, скрипты
// через переменную body пихаем нужный контент
});
})