JSFiddle - React, Tailwind, and code Playground

by Web Carvers

HTML

<button>Try it</button>

JavaScript

console.log($(window).width());

$("button").on('click', function() {
window.open("", "", "width="+ $(window).width() +", height="+ $(window).height());
});